life.c: format it properly
authorMarkus Bröker <mbroeker@largo.dyndns.tv>
Sun, 24 Oct 2010 20:58:53 +0200
changeset 152 53ca9bff8b40
parent 151 a8c2649cf277
child 153 b223089872b6
life.c: format it properly committer: Markus Bröker <mbroeker@largo.homelinux.org>
life.c
--- a/life.c
+++ b/life.c
@@ -24,7 +24,7 @@
 
     while (inp == NULL) {
         printf ("Please enter the file name>> ");
-        if (scanf ("%s", file) < 1)
+        if (scanf ("%80s", file) < 1)
             return -1;
 
         inp = fopen (file, "r");