[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.134 and 1.135

version 1.134, 2007/09/19 12:14:21 version 1.135, 2007/09/19 12:26:16
Line 396 
Line 396 
 {  {
         char rcpath[MAXPATHLEN], *buf, *lbuf, *lp, *p;          char rcpath[MAXPATHLEN], *buf, *lbuf, *lp, *p;
         int i, linenum;          int i, linenum;
         size_t len;          size_t len, pos;
         struct cvs_cmd *cmdp;          struct cvs_cmd *cmdp;
         FILE *fp;          FILE *fp;
   
Line 443 
Line 443 
                 if (*p == '#' || *p == '\t')                  if (*p == '#' || *p == '\t')
                         continue;                          continue;
   
                 lp = strchr(p, ' ');                  pos = strcspn(p, " \t");
                 if (lp == NULL)                  if (pos == strlen(p)) {
                         continue;       /* ignore lines with no arguments */                          /* ignore lines with no arguments */
                 *lp = '\0';                          continue;
                   } else {
                           lp = p + pos;
                           *lp = '\0';
                   }
   
                 if (strcmp(p, "cvs") == 0) {                  if (strcmp(p, "cvs") == 0) {
                         /*                          /*
                          * Global default options.  In the case of cvs only,                           * Global default options.  In the case of cvs only,

Legend:
Removed from v.1.134  
changed lines
  Added in v.1.135