From 0cc70fcf82fefca2d186af4de0b6625a62dd31a0 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 15 Aug 1999 16:50:20 +0000 Subject: Update. 1999-08-10 H.J. Lu * resolv/nss_dns/dns-host.c (getanswer_r): Cleanup out-of- buffer handling. 1999-08-15 Ulrich Drepper * elf/elf.h: Define ElfXX_Versym. * elf/link.h (struct link_map): Use ElfXX_Versym for l_versyms definition. * stdio-common/vfprintf.c (process_string_arg): Handle precisions for string output correctly in the wide character case. Patch by Akira YOSHIYAMA . * intl/locale.alias: Add catalan. 1999-08-14 Andreas Jaeger * manual/install.texi (Configuring and compiling): Mention CFLAGS. 1999-08-15 Ulrich Drepper * po/pt_BR.po: New file. 1999-08-13 Andreas Jaeger * math/libm-test.c (yn_test): Adjust deltas for i386. (ccosh_test): Likewise. (jn_test): Likewise. 1999-08-15 Ulrich Drepper * sysdeps/generic/_G_config.h: Get definition of mbstate_t. --- stdio-common/vfprintf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'stdio-common') diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c index 7422132..a3aa252 100644 --- a/stdio-common/vfprintf.c +++ b/stdio-common/vfprintf.c @@ -1115,9 +1115,10 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap) assert (__mbsinit (&mbstate)); \ s2 = (const wchar_t *) string; \ string = alloca (len + 1); \ - (void) __wcsrtombs (string, &s2, len + 1, &mbstate); \ if (prec > 0 && prec < len) \ - len = prec; \ + len = __wcsrtombs (string, &s2, prec, &mbstate); \ + else \ + (void) __wcsrtombs (string, &s2, len + 1, &mbstate); \ } \ \ if ((width -= len) < 0) \ -- cgit v1.1