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

Diff for /src/usr.bin/mg/cscope.c between version 1.5 and 1.6

version 1.5, 2014/03/20 07:47:29 version 1.6, 2014/04/10 14:03:57
Line 212 
Line 212 
   
         clen = snprintf(title, sizeof(title), "%s%s",          clen = snprintf(title, sizeof(title), "%s%s",
             "Creating cscope file list 'cscope.files' in: ", dir);              "Creating cscope file list 'cscope.files' in: ", dir);
         if (clen < 0 || clen >= sizeof(title))          if (clen < 0 || clen >= sizeof(title)) {
                   pclose(fpipe);
                 return (FALSE);                  return (FALSE);
           }
         addline(bp, title);          addline(bp, title);
         addline(bp, "");          addline(bp, "");
         /* All lines are NUL terminated */          /* All lines are NUL terminated */
Line 436 
Line 438 
         bp->b_flag |= BFREADONLY;          bp->b_flag |= BFREADONLY;
   
         clen = snprintf(title, sizeof(title), "%s%s", csprompt[i], pattern);          clen = snprintf(title, sizeof(title), "%s%s", csprompt[i], pattern);
         if (clen < 0 || clen >= sizeof(title))          if (clen < 0 || clen >= sizeof(title)) {
                   pclose(fpipe);
                 return (FALSE);                  return (FALSE);
           }
         addline(bp, title);          addline(bp, title);
         addline(bp, "");          addline(bp, "");
         addline(bp, "-------------------------------------------------------------------------------");          addline(bp, "-------------------------------------------------------------------------------");

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6