From dfeff9efe696cebcdd6c02579bcf2f9bc2042446 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sun, 25 Feb 2007 02:45:06 +0000 Subject: [PATCH] - sync with libgd.org, patch from Kees Cook --- ext/gd/libgd/gdft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/gd/libgd/gdft.c b/ext/gd/libgd/gdft.c index 25974528af..86dd8c3c77 100644 --- a/ext/gd/libgd/gdft.c +++ b/ext/gd/libgd/gdft.c @@ -986,7 +986,7 @@ gdImageStringFTEx (gdImage * im, int *brect, int fg, char *fontlist, double ptsi } else { ch = c & 0xFF; /* don't extend sign */ } - next++; + if (*next) next++; } break; case gdFTEX_Big5: { -- 2.50.1