about summary refs log tree commit diff
path: root/stdio-common/bug10.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/bug10.c')
-rw-r--r--stdio-common/bug10.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/stdio-common/bug10.c b/stdio-common/bug10.c
index 3e1477dca1..53064715ab 100644
--- a/stdio-common/bug10.c
+++ b/stdio-common/bug10.c
@@ -1,13 +1,13 @@
 #include <stdio.h>
-int main(int arc, char *argv)
+
+int
+main(int arc, char *argv)
 {
   int n, res;
   unsigned int val;
-  char *s;
+  char s[] = "111";
   int result = 0;
 
-  s = "111";
-
   n = 0;
   res = sscanf(s, "%u %n", &val, &n);
 
@@ -23,4 +23,3 @@ int main(int arc, char *argv)
 
   return result;
 }
-