life.c
changeset 152 53ca9bff8b40
parent 77 49e0babccb23
--- 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");