diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-12-07 16:50:11 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-12-07 16:50:11 +0000 |
commit | 26e21e7554ca5bbc719d5b018e26d5eb621c9e2e (patch) | |
tree | cba97f6eef732d9fbacf1cc5205f8e3eeeb8c1f1 /stdio-common/bug21.c | |
parent | c9d65f0fbdf83d13e85a82d0b7b564d343a3c64b (diff) | |
download | glibc-26e21e7554ca5bbc719d5b018e26d5eb621c9e2e.tar glibc-26e21e7554ca5bbc719d5b018e26d5eb621c9e2e.tar.gz glibc-26e21e7554ca5bbc719d5b018e26d5eb621c9e2e.tar.bz2 glibc-26e21e7554ca5bbc719d5b018e26d5eb621c9e2e.zip |
[BZ #5441, BZ #5452, BZ #5454]
2007-12-07 Ulrich Drepper <drepper@redhat.com>
[BZ #5441]
* stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
structure, it's allocated with alloca.
* stdio-common/Makefile (tests): Add bug21.
* stdio-common/bug21.c: New file.
2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
[BZ #5452]
* sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
keyword for gcc's braced-groups.
2007-12-07 Ulrich Drepper <drepper@redhat.com>
[BZ #5454]
* inet/ether_line.c: Strip hostname of whitespaces.
* inet/Makefile (tests): Add tst-ether_line.
* inet/tst-ether_line.c: New file.
Diffstat (limited to 'stdio-common/bug21.c')
-rw-r--r-- | stdio-common/bug21.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/stdio-common/bug21.c b/stdio-common/bug21.c new file mode 100644 index 0000000000..d22b9c1a97 --- /dev/null +++ b/stdio-common/bug21.c @@ -0,0 +1,16 @@ +#include <stdio.h> + +static int +do_test (void) +{ + static const char buf[] = " "; + char *str; + + int r = sscanf (buf, "%as", &str); + printf ("%d %p\n", r, str); + + return r != -1 || str != NULL; +} + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" |