Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 23 Jul 2000 17:40:46 +0000 (17:40 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 23 Jul 2000 17:40:46 +0000 (17:40 +0000)
* stdio-common/vfprintf.c (process_string_arg): For wide character
version, handle precision also correctly.

ChangeLog
stdio-common/vfprintf.c

index 2c41b19..c11ba1f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
 
+       * stdio-common/vfprintf.c (process_string_arg): For wide character
+       version, handle precision also correctly.
+
        * nss/nss_files/files-hosts.c: Correct problem with three or more
        entries with the same name.
 
index 1682b0b..2a077b4 100644 (file)
@@ -1037,7 +1037,7 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
            string = (CHAR_T *) alloca (len * sizeof (wchar_t));              \
                                                                              \
            memset (&mbstate, '\0', sizeof (mbstate_t));                      \
-           len = __mbsrtowcs (string, &mbs, len, &mbstate);                  \
+           len = __mbsnrtowcs (string, &mbs, len, len, &mbstate);            \
            if (len == (size_t) -1)                                           \
              {                                                               \
                /* Illegal multibyte character.  */                           \