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

Diff for /src/usr.bin/cvs/diff.c between version 1.76 and 1.77

version 1.76, 2006/01/02 17:06:10 version 1.77, 2006/01/25 11:13:18
Line 535 
Line 535 
 static int  static int
 cvs_diff_local(CVSFILE *cf, void *arg)  cvs_diff_local(CVSFILE *cf, void *arg)
 {  {
         int len;  
         char *repo, buf[64];          char *repo, buf[64];
         char fpath[MAXPATHLEN], rcspath[MAXPATHLEN];          char fpath[MAXPATHLEN], rcspath[MAXPATHLEN];
         char path_tmp1[MAXPATHLEN], path_tmp2[MAXPATHLEN];          char path_tmp1[MAXPATHLEN], path_tmp2[MAXPATHLEN];
Line 571 
Line 570 
                 return (0);                  return (0);
   
         /* at this point, the file is modified */          /* at this point, the file is modified */
         len = snprintf(rcspath, sizeof(rcspath), "%s/%s/%s%s",          cvs_rcs_getpath(cf, rcspath, sizeof(rcspath));
             root->cr_dir, repo, diff_file, RCS_FILE_EXT);  
         if (len == -1 || len >= (int)sizeof(rcspath)) {  
                 errno = ENAMETOOLONG;  
                 cvs_log(LP_ERRNO, "%s", rcspath);  
                 return (CVS_EX_DATA);  
         }  
   
         rf = rcs_open(rcspath, RCS_READ);          rf = rcs_open(rcspath, RCS_READ);
         if (rf == NULL) {          if (rf == NULL) {

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.77