* stdio-common/vfprintf.c (process_string_arg): Adjust call to
authorUlrich Drepper <drepper@redhat.com>
Sat, 5 May 2007 04:41:44 +0000 (04:41 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 5 May 2007 04:41:44 +0000 (04:41 +0000)
__mbsnrtowcs after last change.

ChangeLog
stdio-common/vfprintf.c

index 5228f1b..c09e317 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
 
+       * stdio-common/vfprintf.c (process_string_arg): Adjust call to
+       __mbsnrtowcs after last change.
+
        * locale/programs/linereader.c (get_symname): Fix adding final NUL.
        (get_ident): Likewise.
 
index 20c07ce..4f0d971 100644 (file)
@@ -1173,8 +1173,8 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
                    memset (&ps, '\0', sizeof (ps));                          \
                                                                              \
                    while (str2 != NULL && str2 < strend)                     \
-                     if (__mbsnrtowcs (ignore, &str2, strend - str2, 1024,   \
-                                       &ps) == (size_t) -1)                  \
+                     if (__mbsnrtowcs (ignore, &str2, strend - str2,         \
+                                       ignore_size, &ps) == (size_t) -1)     \
                        {                                                     \
                          done = -1;                                          \
                          goto all_done;                                      \