[BACK]Return to wizard.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / games / adventure

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/games/adventure/wizard.c between version 1.15 and 1.16

version 1.15, 2012/10/12 10:38:53 version 1.16, 2012/10/12 15:41:10
Line 135  ciao(void)
Line 135  ciao(void)
   
         printf("What would you like to call the saved version?\n");          printf("What would you like to call the saved version?\n");
         /* XXX - should use fgetln to avoid arbitrary limit */          /* XXX - should use fgetln to avoid arbitrary limit */
         for (pos = 0; pos < sizeof(fname - 1); pos++) {          for (pos = 0; pos < sizeof(fname) - 1; pos++) {
                 int ch;                  int ch;
                 ch = getchar();                  ch = getchar();
                 if (ch == '\n' || ch == EOF)                  if (ch == '\n' || ch == EOF)

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

CVSweb <webmaster@jp.NetBSD.org>