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.
This commit is contained in:
Jeff Johnston 2003-11-24 18:39:04 +00:00
parent 46c6a3e8eb
commit 6db165c2a5
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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));