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

Diff for /src/usr.bin/diff/diffdir.c between version 1.41 and 1.42

version 1.41, 2012/11/29 02:15:44 version 1.42, 2014/05/20 01:25:23
Line 56 
Line 56 
   
         dirlen1 = strlcpy(path1, *p1 ? p1 : ".", sizeof(path1));          dirlen1 = strlcpy(path1, *p1 ? p1 : ".", sizeof(path1));
         if (dirlen1 >= sizeof(path1) - 1) {          if (dirlen1 >= sizeof(path1) - 1) {
                 warnx("%s: %s", p1, strerror(ENAMETOOLONG));                  warnc(ENAMETOOLONG, "%s", p1);
                 status = 2;                  status = 2;
                 return;                  return;
         }          }
Line 66 
Line 66 
         }          }
         dirlen2 = strlcpy(path2, *p2 ? p2 : ".", sizeof(path2));          dirlen2 = strlcpy(path2, *p2 ? p2 : ".", sizeof(path2));
         if (dirlen2 >= sizeof(path2) - 1) {          if (dirlen2 >= sizeof(path2) - 1) {
                 warnx("%s: %s", p2, strerror(ENAMETOOLONG));                  warnc(ENAMETOOLONG, "%s", p2);
                 status = 2;                  status = 2;
                 return;                  return;
         }          }

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42