diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2003-11-24 18:39:04 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2003-11-24 18:39:04 +0000 |
commit | 6db165c2a5e61bbca7f2d0ccb0ad8384a2f4d18a (patch) | |
tree | 9c1a4b9826bbec9be5390a234f149034cfd062e5 /newlib | |
parent | 46c6a3e8ebfed8819c13a15c9b6d3537f0a529ba (diff) | |
download | newlib-6db165c2a5e61bbca7f2d0ccb0ad8384a2f4d18a.zip newlib-6db165c2a5e61bbca7f2d0ccb0ad8384a2f4d18a.tar.gz newlib-6db165c2a5e61bbca7f2d0ccb0ad8384a2f4d18a.tar.bz2 |
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')
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/stdio/vfprintf.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index b0cd71d..f9939c3 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +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. + 2003-11-21 Artem B. Bityuckiy <mail_lists@mail.ru> * 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 62989fd..743d307 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)); |