Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2003-11-24 21:39:04 +0300
committerJeff Johnston <jjohnstn@redhat.com>2003-11-24 21:39:04 +0300
commit6db165c2a5e61bbca7f2d0ccb0ad8384a2f4d18a (patch)
tree9c1a4b9826bbec9be5390a234f149034cfd062e5 /newlib
parent46c6a3e8ebfed8819c13a15c9b6d3537f0a529ba (diff)
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/ChangeLog5
-rw-r--r--newlib/libc/stdio/vfprintf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index b0cd71d66..f9939c35a 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 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));