Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.229
 
1.230
 
MAIN:ragge:20120805193031
 
cc.c
_>11831183         if ((p = strrchr(s, '.'))) {
 11841184                 p[1] = ch;
 11851185                 p[2] = '\0';
<> 1186+                return(s);
11861187         }
 11871188         l = strlen(s)+3;
 11881189         p = xmalloc(l);
<>1189 -        strlcpy(p, s, l);
 1190 -        s = p;
 1191 -        p += l-3;
 1192 -        *p++ = '.';
 1193 -        *p++ = ch;
 1194 -        *p++ = 0;
 1195 -        return(s);
  1190+        snprintf(p, l, "%s.%c", s, ch);
  1191+        return(p);
<_11961192 }
 11971193 
 11981194 #ifdef os_win32
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-08-31 10:16 +0200