about summary refs log tree commit diff
path: root/stdio-common/scanf12.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-07-22 07:26:13 +0000
committerUlrich Drepper <drepper@redhat.com>2000-07-22 07:26:13 +0000
commitfcc10ffab6d696cdda8a1a33b8e1720d90f7a15b (patch)
treeaae8d3effebc9e4e1428c1cedafc35666ebcb62c /stdio-common/scanf12.c
parent40c014b3dcc698ae2cc935aefabbeb2196088128 (diff)
downloadglibc-fcc10ffab6d696cdda8a1a33b8e1720d90f7a15b.tar.gz
glibc-fcc10ffab6d696cdda8a1a33b8e1720d90f7a15b.tar.xz
glibc-fcc10ffab6d696cdda8a1a33b8e1720d90f7a15b.zip
Update.
	* stdio-common/vfscanf.c: Handle input -- with format %f correctly
	(it's no input error).
	* stdio-common/tstscanf.c: Add test case for format %f with input --.
	* stdio-common/scanf12.c: Correct expected result for first scanf.
Diffstat (limited to 'stdio-common/scanf12.c')
-rw-r--r--stdio-common/scanf12.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/scanf12.c b/stdio-common/scanf12.c
index b557785377..db37e2fedc 100644
--- a/stdio-common/scanf12.c
+++ b/stdio-common/scanf12.c
@@ -7,7 +7,7 @@ main (void)
   double d;
   int c;
 
-  if (scanf ("%lg", &d) != EOF)
+  if (scanf ("%lg", &d) != 0)
     {
       printf ("scanf didn't failed\n");
       exit (1);