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

Diff for /src/usr.bin/rcs/rcsutil.c between version 1.7 and 1.8

version 1.7, 2006/04/27 07:59:33 version 1.8, 2006/04/29 05:31:28
Line 197 
Line 197 
          */           */
         if (strcmp(rcs_suffixes, "") == 0) {          if (strcmp(rcs_suffixes, "") == 0) {
                 fd = open(rcspath, O_RDONLY);                  fd = open(rcspath, O_RDONLY);
                 strlcpy(out, rcspath, len);                  if (strlcpy(out, rcspath, len) >= len)
                           errx(1, "rcs_choosefile: truncation");
                 return (fd);                  return (fd);
         }          }
   
Line 263 
Line 264 
         xfree(suffixes);          xfree(suffixes);
   
         fd = open(rcspath, O_RDONLY);          fd = open(rcspath, O_RDONLY);
         strlcpy(out, rcspath, len);          if (strlcpy(out, rcspath, len) >= len)
                   errx(1, "rcs_choosefile: truncation");
   
         return (fd);          return (fd);
 }  }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8