about summary refs log tree commit diff
path: root/stdio-common/scanf3.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/scanf3.c')
-rw-r--r--stdio-common/scanf3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdio-common/scanf3.c b/stdio-common/scanf3.c
index 33495cca79..5bfa80b62f 100644
--- a/stdio-common/scanf3.c
+++ b/stdio-common/scanf3.c
@@ -13,7 +13,7 @@ main(int arc, char *argv[])
   printf("Result of sscanf = %d\n", res);
   printf("Scanned format %%u = %u\n", val);
   printf("Possibly scanned format %%n = %d\n", n);
-  if (n != 3 || val != 111 || res != 1)
+  if (n != 3 || val != 111 || res != 2)
     abort ();
 
   val = n = -1;
@@ -21,7 +21,7 @@ main(int arc, char *argv[])
   printf("Result of sscanf = %d\n", res);
   printf("Scanned format %%u = %u\n", val);
   printf("Possibly scanned format %%n = %d\n", n);
-  if (n != 3 || val != 111 || res != 1)
+  if (n != 3 || val != 111 || res != 2)
     abort ();
 
   return 0;