[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.47 and 1.48

version 1.47, 2010/10/23 18:36:35 version 1.48, 2015/01/16 06:40:07
Line 163 
Line 163 
 struct cvsroot *  struct cvsroot *
 cvsroot_get(const char *dir)  cvsroot_get(const char *dir)
 {  {
         char rootpath[MAXPATHLEN], *rootstr, line[128];          char rootpath[PATH_MAX], *rootstr, line[128];
         FILE *fp;          FILE *fp;
   
         if (cvs_rootstr != NULL)          if (cvs_rootstr != NULL)
Line 178 
Line 178 
                 return (NULL);                  return (NULL);
         }          }
   
         (void)xsnprintf(rootpath, MAXPATHLEN, "%s/%s", dir, CVS_PATH_ROOTSPEC);          (void)xsnprintf(rootpath, PATH_MAX, "%s/%s", dir, CVS_PATH_ROOTSPEC);
   
         if ((fp = fopen(rootpath, "r")) == NULL) {          if ((fp = fopen(rootpath, "r")) == NULL) {
                 if (errno == ENOENT) {                  if (errno == ENOENT) {

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48