summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2003-11-24 18:39:04 +0000
committerJeff Johnston <jjohnstn@redhat.com>2003-11-24 18:39:04 +0000
commit6db165c2a5e61bbca7f2d0ccb0ad8384a2f4d18a (patch)
tree9c1a4b9826bbec9be5390a234f149034cfd062e5 /newlib/libc
parent46c6a3e8ebfed8819c13a15c9b6d3537f0a529ba (diff)
downloadcygnal-6db165c2a5e61bbca7f2d0ccb0ad8384a2f4d18a.tar.gz
cygnal-6db165c2a5e61bbca7f2d0ccb0ad8384a2f4d18a.tar.bz2
cygnal-6db165c2a5e61bbca7f2d0ccb0ad8384a2f4d18a.zip
2003-11-24 Artem B. Bityuckiy <mail_lists@mail.ru>
* libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format specifier to use ch instead of *fmt.
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));