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

Diff for /src/usr.bin/cvs/cvs.c between version 1.53 and 1.54

version 1.53, 2005/04/12 19:35:32 version 1.54, 2005/04/16 19:05:02
Line 587 
Line 587 
 cvs_read_rcfile(void)  cvs_read_rcfile(void)
 {  {
         char rcpath[MAXPATHLEN], linebuf[128], *lp;          char rcpath[MAXPATHLEN], linebuf[128], *lp;
         int linenum = 0;          int l, linenum = 0;
         size_t len;          size_t len;
         struct cvs_cmd *cmdp;          struct cvs_cmd *cmdp;
         struct passwd *pw;          struct passwd *pw;
Line 599 
Line 599 
                 return;                  return;
         }          }
   
         snprintf(rcpath, sizeof(rcpath), "%s/%s", pw->pw_dir, CVS_PATH_RC);          l = snprintf(rcpath, sizeof(rcpath), "%s/%s", pw->pw_dir, CVS_PATH_RC);
           if (l == -1 || l >= (int)sizeof(rcpath)) {
                   errno = ENAMETOOLONG;
                   cvs_log(LP_ERRNO, "%s", rcpath);
                   return;
           }
   
         fp = fopen(rcpath, "r");          fp = fopen(rcpath, "r");
         if (fp == NULL) {          if (fp == NULL) {

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54