summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/stdio/vfprintf.c2
1 files changed, 1 insertions, 1 deletions
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));