[BACK]Return to units.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / units

Diff for /src/usr.bin/units/units.c between version 1.11 and 1.12

version 1.11, 2004/12/02 22:54:55 version 1.12, 2007/02/20 01:56:12
Line 153 
Line 153 
                 }                  }
         }          }
         while (!feof(unitfile)) {          while (!feof(unitfile)) {
                 if (!fgets(line, 79, unitfile))                  if (!fgets(line, sizeof(line), unitfile))
                         break;                          break;
                 linenum++;                  linenum++;
                 lineptr = line;                  lineptr = line;
Line 713 
Line 713 
                                 initializeunit(&have);                                  initializeunit(&have);
                                 if (!quiet)                                  if (!quiet)
                                         printf("You have: ");                                          printf("You have: ");
                                 if (!fgets(havestr, 80, stdin)) {                                  if (!fgets(havestr, sizeof(havestr), stdin)) {
                                         if (!quiet)                                          if (!quiet)
                                                 putchar('\n');                                                  putchar('\n');
                                         exit(0);                                          exit(0);
Line 724 
Line 724 
                                 initializeunit(&want);                                  initializeunit(&want);
                                 if (!quiet)                                  if (!quiet)
                                         printf("You want: ");                                          printf("You want: ");
                                 if (!fgets(wantstr, 80, stdin)) {                                  if (!fgets(wantstr, sizeof(wantstr), stdin)) {
                                         if (!quiet)                                          if (!quiet)
                                                 putchar('\n');                                                  putchar('\n');
                                         exit(0);                                          exit(0);

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12