From: Ulrich Drepper Date: Sun, 23 Jul 2000 17:40:46 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc_2-1-92~125 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a1fc4ed179502fc1da5b297cd4268333f6595fb;p=platform%2Fupstream%2Fglibc.git Update. * stdio-common/vfprintf.c (process_string_arg): For wide character version, handle precision also correctly. --- diff --git a/ChangeLog b/ChangeLog index 2c41b19..c11ba1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2000-07-23 Ulrich Drepper + * 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. diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c index 1682b0b..2a077b4 100644 --- a/stdio-common/vfprintf.c +++ b/stdio-common/vfprintf.c @@ -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. */ \