From 7812b45b3698244eaf6478bafe34ae4be41ada97 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 17 Jun 2003 13:37:57 +0000 Subject: [PATCH] MFH: Fixed bug #24223 (missing variable initialization in bundled gd) --- ext/gd/libgd/gdft.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ext/gd/libgd/gdft.c b/ext/gd/libgd/gdft.c index f328fddcc8..f697bfe750 100644 --- a/ext/gd/libgd/gdft.c +++ b/ext/gd/libgd/gdft.c @@ -889,11 +889,16 @@ gdImageStringFTEx (gdImage * im, int *brect, int fg, char *fontlist, double ptsi } #ifndef JISX0208 - if (!font->have_char_map_sjis) { - next = string; - } else + if (font->have_char_map_sjis) { #endif tmpstr = (char *) gdMalloc(BUFSIZ); + any2eucjp(tmpstr, string, BUFSIZ); + next = tmpstr; +#ifndef JISX0208 + } else { + next = string; + } +#endif while (*next) { ch = *next; -- 2.50.1