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

Diff for /src/usr.bin/which/which.c between version 1.18 and 1.19

version 1.18, 2013/04/10 02:57:20 version 1.19, 2014/05/20 01:25:23
Line 125 
Line 125 
                         p[--plen] = '\0';       /* strip trailing '/' */                          p[--plen] = '\0';       /* strip trailing '/' */
   
                 if (plen + 1 + proglen >= sizeof(filename)) {                  if (plen + 1 + proglen >= sizeof(filename)) {
                         warnx("%s/%s: %s", p, prog, strerror(ENAMETOOLONG));                          warnc(ENAMETOOLONG, "%s/%s", p, prog);
                         free(path);                          free(path);
                         return (0);                          return (0);
                 }                  }

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19