From a164874646386e3bba4d0ac17e6e69033396363f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 25 Sep 1999 06:37:46 +0000 Subject: Update. 1999-09-24 Andreas Jaeger * stdio-common/tst-printf.c (main): Add a testcase for large precision. Reported by Tymm Twillman . 1999-09-24 Andreas Schwab * math/bits/mathcalls.h: Fix last change. Also declare __finite. 1999-09-24 Andreas Jaeger * intl/finddomain.c (_nl_find_domain): Fix memory leak: Free normalized_codeset. Reported by Belicky Zsolt . 1999-09-23 Mark Kettenis * sysdeps/unix/sysv/linux/Makefile [malloc] (CFLAGS-malloc.c): New variable. Define MORECORE_CLEARS to 2. * malloc/malloc.c (cALLOc): Correctly handle systems where sbrk doesn't clear the contents of memory that is reallocated after decrementing the break value first. Update comment about MORECORE_CLEARS, explaining the meaning of the values it can be set to. --- stdio-common/tst-printf.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'stdio-common') diff --git a/stdio-common/tst-printf.c b/stdio-common/tst-printf.c index c50c882028..28d5c5116a 100644 --- a/stdio-common/tst-printf.c +++ b/stdio-common/tst-printf.c @@ -213,8 +213,11 @@ I am ready for my first lesson today."; { char buf[20]; + char buf2[512]; printf ("snprintf (\"%%30s\", \"foo\") == %d, \"%.*s\"\n", snprintf (buf, sizeof (buf), "%30s", "foo"), sizeof (buf), buf); + printf ("snprintf (\"%%.999999u\", 10)\n", + snprintf(buf2, sizeof(buf2), "%.999999u", 10)); } fp_test (); -- cgit v1.2.3