about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--stdio-common/vfprintf.c2
2 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index d673c36f1d..457cc0b99b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,14 +1,15 @@
 1998-05-20  Ulrich Drepper  <drepper@cygnus.com>
 
+	* stdio-common/vfprintf.c (process_arg): Fix typo.
+
 	* iconvdata/TESTS: New tests for EUC-KR.
 
-	* iconvdata/Makefile ($(objpfx)iconv-test.out): Also depend on
-	TESTS.
+	* iconvdata/Makefile ($(objpfx)iconv-test.out): Also depend on TESTS.
 	* iconvdata/testdata/EUC-KR: New file.
 
 1998-05-20 07:26  H.J. Lu  <hjl@gnu.org>
 
-	* math/libm-test.c (hypot_test): Fix a tyypo.
+	* math/libm-test.c (hypot_test): Fix a typo.
 
 1998-05-20  Ulrich Drepper  <drepper@cygnus.com>
 
diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c
index ef9165e448..85558a1574 100644
--- a/stdio-common/vfprintf.c
+++ b/stdio-common/vfprintf.c
@@ -891,7 +891,7 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
 	    s2 = (const wchar_t *) string;				      \
 	    string = alloca (len + 1);					      \
 	    (void) __wcsrtombs (string, &s2, len + 1, &mbstate);	      \
-	    if (prec < min)						      \
+	    if (prec < len)						      \
 	      len = prec;						      \
 	  }								      \
 									      \