diff --git a/newlib/ChangeLog b/newlib/ChangeLog index b0cd71d66..f9939c35a 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2003-11-24 Artem B. Bityuckiy + + * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format + specifier to use ch instead of *fmt. + 2003-11-21 Artem B. Bityuckiy * libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c index 62989fdb2..743d307a8 100644 --- a/newlib/libc/stdio/vfprintf.c +++ b/newlib/libc/stdio/vfprintf.c @@ -746,7 +746,7 @@ reswitch: switch (ch) { case 'c': case 'C': cp = buf; - if (*fmt == 'C' || (flags & LONGINT)) { + if (ch == 'C' || (flags & LONGINT)) { mbstate_t ps; memset((void *)&ps, '\0', sizeof(mbstate_t));