# HG changeset patch # User Markus Bröker # Date 1287946733 -7200 # Node ID 53ca9bff8b40c16f596d5304dadf705e6df1eb6d # Parent a8c2649cf277dc3dcededb331d16d8cb069116e8 life.c: format it properly committer: Markus Bröker diff --git a/life.c b/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");