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

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

version 1.11, 2002/02/13 22:36:58 version 1.12, 2002/02/13 22:50:40
Line 105 
Line 105 
         /* new buffer name */          /* new buffer name */
         for (count = 1; bfind(bname, FALSE) != NULL; count++)          for (count = 1; bfind(bname, FALSE) != NULL; count++)
                 ;                  ;
         snprintf(bname, sizeof bname, "%s<%d>", basename(fname), count);          if (count == 1)
                   snprintf(bname, sizeof bname, "%s", basename(fname));
           else
                   snprintf(bname, sizeof bname, "%s<%d>", basename(fname), count);
   
         return bfind(bname, TRUE);          return bfind(bname, TRUE);
 }  }

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