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

Diff for /src/usr.bin/cvs/root.c between version 1.28 and 1.29

version 1.28, 2006/01/02 08:11:56 version 1.29, 2006/01/25 08:15:05
Line 238 
Line 238 
                 return cvsroot_parse(cvs_rootstr);                  return cvsroot_parse(cvs_rootstr);
   
         l = snprintf(rootpath, sizeof(rootpath), "%s/" CVS_PATH_ROOTSPEC, dir);          l = snprintf(rootpath, sizeof(rootpath), "%s/" CVS_PATH_ROOTSPEC, dir);
         if (l == -1 || l >= (int)sizeof(rootpath)) {          if (strlcpy(rootpath, dir, sizeof(rootpath)) >= sizeof(rootpath) ||
               strlcat(rootpath, "/", sizeof(rootpath)) >= sizeof(rootpath) ||
               strlcat(rootpath, CVS_PATH_ROOTSPEC,
               sizeof(rootpath)) >= sizeof(rootpath)) {
                 errno = ENAMETOOLONG;                  errno = ENAMETOOLONG;
                 fatal("cvsroot_get: %s: %s", rootpath, strerror(errno));                  fatal("cvsroot_get: %s: %s", rootpath, strerror(errno));
         }          }

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29