From 6db165c2a5e61bbca7f2d0ccb0ad8384a2f4d18a Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Mon, 24 Nov 2003 18:39:04 +0000 Subject: 2003-11-24 Artem B. Bityuckiy * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format specifier to use ch instead of *fmt. --- newlib/libc/stdio/vfprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc') 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)); -- cgit v1.2.3