summaryrefslogtreecommitdiff
path: root/stdio-common/scanf1.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/scanf1.c')
-rw-r--r--stdio-common/scanf1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/scanf1.c b/stdio-common/scanf1.c
index 58c78c2292..be6d63e997 100644
--- a/stdio-common/scanf1.c
+++ b/stdio-common/scanf1.c
@@ -9,7 +9,7 @@ main (int argc, char *argv[])
n = i = r = -1;
r = sscanf ("1234:567", "%d%n", &i, &n);
printf ("%d %d %d\n", r, n, i);
- if (r != 2 || i != 1234 || n != 4)
+ if (r != 1 || i != 1234 || n != 4)
abort ();
return 0;
}