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

Diff for /src/usr.bin/cvs/commit.c between version 1.23 and 1.24

version 1.23, 2005/04/12 14:58:40 version 1.24, 2005/04/15 14:34:15
Line 162 
Line 162 
 int  int
 cvs_commit_file(CVSFILE *cf, void *arg)  cvs_commit_file(CVSFILE *cf, void *arg)
 {  {
         int ret;          int ret, l;
         char *repo, rcspath[MAXPATHLEN], fpath[MAXPATHLEN];          char *repo, rcspath[MAXPATHLEN], fpath[MAXPATHLEN];
         RCSFILE *rf;          RCSFILE *rf;
         struct cvsroot *root;          struct cvsroot *root;
Line 212 
Line 212 
                 }                  }
         }          }
   
         snprintf(rcspath, sizeof(rcspath), "%s/%s/%s%s",          l = snprintf(rcspath, sizeof(rcspath), "%s/%s/%s%s",
             root->cr_dir, repo, fpath, RCS_FILE_EXT);              root->cr_dir, repo, fpath, RCS_FILE_EXT);
           if (l == -1 || l >= (int)sizeof(rcspath)) {
                   errno = ENAMETOOLONG;
                   cvs_log(LP_ERRNO, "%s", rcspath);
                   return (-1);
           }
   
         cvs_ent_free(entp);          cvs_ent_free(entp);
   

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24