Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.199
 
1.200
 
MAIN:ragge:20070915073738
 
reader.c
_>339339                 case SMONE:
 340340                         return "SMONE";
 341341                 default:
<>342 -                        sprintf(buf, "SPECIAL+%d", cookie & ~SPECIAL);
  342+                        snprintf(buf, sizeof(buf), "SPECIAL+%d", cookie & ~SPECIAL);
343343                         return buf;
 344344                 }
 345345         }
     
 !
349349         for (i = 0; cnames[i]; ++i) {
 350350                 if (cookie & (1<<i)) {
 351351                         if (flag)
<>352 -                                strcat(buf, "|");
  352+                                strlcat(buf, "|", sizeof(buf));
353353                         ++flag;
<>354 -                        strcat(buf, cnames[i]);
  354+                        strlcat(buf, cnames[i], sizeof(buf));
<_355355                 }
 356356         }
 357357         return buf;
FishEye: Open Source License registered to PCC.
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-12-21 13:50 +0100