[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.32 and 1.33

version 1.32, 2005/04/03 02:09:28 version 1.33, 2005/04/21 19:16:21
Line 128 
Line 128 
                         return (bp);                          return (bp);
         }          }
         i = strlcpy(bname, basename(fname), sizeof(bname));          i = strlcpy(bname, basename(fname), sizeof(bname));
           if (i >= sizeof(bname))
                   return NULL;
         remain = sizeof(bname) - i;          remain = sizeof(bname) - i;
         for (count = 2; bfind(bname, FALSE) != NULL; count++)          for (count = 2; bfind(bname, FALSE) != NULL; count++)
                 snprintf(&bname[i], remain, "<%d>", count);                  snprintf(&bname[i], remain, "<%d>", count);

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33