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

Diff for /src/usr.bin/patch/patch.c between version 1.12 and 1.13

version 1.12, 1999/08/31 21:29:19 version 1.13, 1999/12/04 01:01:06
Line 312 
Line 312 
         if (failed) {          if (failed) {
             failtotal += failed;              failtotal += failed;
             if (!*rejname) {              if (!*rejname) {
                 Strcpy(rejname, outname);                  if (strlcpy(rejname, outname, sizeof(rejname)) >= sizeof(rejname))
                       fatal2("filename %s is too long\n", outname);
   
 #ifndef FLEXFILENAMES  #ifndef FLEXFILENAMES
                 {                  {
                     char *s = strrchr(rejname,'/');                      char *s = strrchr(rejname,'/');
Line 325 
Line 327 
                         s[13] = '\0';                          s[13] = '\0';
                 }                  }
 #endif  #endif
                 Strcat(rejname, REJEXT);                  if (strlcat(rejname, REJEXT, sizeof(rejname)) >= sizeof(rejname))
                       fatal2("filename %s is too long\n", outname);
             }              }
             if (skip_rest_of_patch) {              if (skip_rest_of_patch) {
                 say4("%d out of %d hunks ignored--saving rejects to %s\n",                  say4("%d out of %d hunks ignored--saving rejects to %s\n",
Line 548 
Line 551 
                 strippath = atoi(s);                  strippath = atoi(s);
                 break;                  break;
             case 'r':              case 'r':
                 Strcpy(rejname, nextarg());                  if (strlcpy(rejname, nextarg(), sizeof(rejname)) >= sizeof(rejname))
                       fatal1("argument for -r is too long\n");
                 break;                  break;
             case 'R':              case 'R':
                 reverse = TRUE;                  reverse = TRUE;

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