1998-05-20 Ulrich Drepper <drepper@cygnus.com>
* stdio-common/vfprintf.c: When precision is specified for %ls or
%S handle it correctly.
+1998-05-20 Ulrich Drepper <drepper@cygnus.com>
+
+ * stdio-common/vfprintf.c: When precision is specified for %ls or
+ %S handle it correctly.
+
1998-05-20 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* sysdeps/unix/bsd/vax/vfork.S: Missed double occurences of "the
assert (__mbsinit (&mbstate)); \
s2 = (const wchar_t *) string; \
string = alloca (len + 1); \
- (void) __wcsrtombs (string, &s2, prec != -1 ? prec : UINT_MAX, \
- &mbstate); \
+ (void) __wcsrtombs (string, &s2, len + 1, &mbstate); \
+ if (prec < min) \
+ len = prec; \
} \
\
if ((width -= len) < 0) \