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

Diff for /src/usr.bin/cvs/util.c between version 1.100 and 1.101

version 1.100, 2007/01/20 01:07:51 version 1.101, 2007/01/20 16:52:39
Line 625 
Line 625 
                 fatal("cvs_get_repository_name: truncation");                  fatal("cvs_get_repository_name: truncation");
   
         if ((fp = fopen(fpath, "r")) != NULL) {          if ((fp = fopen(fpath, "r")) != NULL) {
                 fgets(dst, len, fp);                  if ((fgets(dst, len, fp)) == NULL)
                           fatal("cvs_get_repository_name: bad repository file");
   
                 if ((s = strchr(dst, '\n')) != NULL)                  if ((s = strchr(dst, '\n')) != NULL)
                         *s = '\0';                          *s = '\0';

Legend:
Removed from v.1.100  
changed lines
  Added in v.1.101