diff options
Diffstat (limited to 'games/adventure/wizard.c')
-rw-r--r-- | games/adventure/wizard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/games/adventure/wizard.c b/games/adventure/wizard.c index 2ff3f5f798b..4722391ebe8 100644 --- a/games/adventure/wizard.c +++ b/games/adventure/wizard.c @@ -120,7 +120,7 @@ char *cmdfile; printf("What would you like to call the saved version?\n"); for (c=fname;; c++) - if ((*c=getchar())=='\n') break; + if ((*c=getchar())=='\n' || *c == EOF) break; *c=0; if (save(fname) != 0) return; /* Save failed */ printf("To resume, say \"adventure %s\".\n", fname); |