Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.178
 
1.179
 
MAIN:plunky:20121017110419
 
cpp.c
_>21502150 static usch *
 21512151 xstrdup(const usch *str)
 21522152 {
<>2153 -        size_t len = strlen((const char *)str)+1;
21542153         usch *rv;
 21552154 
<>2156 -        if ((rv = malloc(len)) == NULL)
  2155+        if ((rv = (usch *)strdup((const char *)str)) == NULL)
21572156                 error("xstrdup: out of mem");
<>2158 -        strlcpy((char *)rv, (const char *)str, len);
<_21592157         return rv;
 21602158 }
 21612159 
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-25 20:56 +0100