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

Diff for /src/usr.bin/mg/grep.c between version 1.32 and 1.33

version 1.32, 2006/07/25 08:27:09 version 1.33, 2006/11/19 16:51:19
Line 303 
Line 303 
         /* last line is compilation result */          /* last line is compilation result */
         if (curwp->w_dotp == last)          if (curwp->w_dotp == last)
                 return (FALSE);                  return (FALSE);
   
         if ((line = linetostr(curwp->w_dotp)) == NULL)          if ((line = linetostr(curwp->w_dotp)) == NULL)
                 return (FALSE);                  return (FALSE);
         lp = line;          lp = line;
Line 314 
Line 314 
         lineno = (int)strtonum(ln, INT_MIN, INT_MAX, &errstr);          lineno = (int)strtonum(ln, INT_MIN, INT_MAX, &errstr);
         if (errstr)          if (errstr)
                 goto fail;                  goto fail;
   
         if (fname && fname[0] != '/') {          if (fname && fname[0] != '/') {
                 (void)strlcpy(path, curbp->b_cwd, sizeof(path));                  (void)strlcpy(path, curbp->b_cwd, sizeof(path));
                 if (strlcat(path, fname, sizeof(path)) >= sizeof(path))                  if (strlcat(path, fname, sizeof(path)) >= sizeof(path))

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33