Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.165
 
1.166
 
MAIN:plunky:20120906130728
 
local.c
_>7575         }
 7676 
 7777         s = permalloc(sizeof(struct stub));
<>78 -        s->name = permalloc(strlen(name) + 1);
 79 -        strcpy(s->name, name);
  78+        s->name = newstring(name, strlen(name));
8079         DLIST_INSERT_BEFORE(list, s, link);
 8180 }
 8281 
     
 !
782781                         return; /* function pointer */
 783782 
 784783                 if (isu) {
<>785 -                        *c = 0;
786784                         addstub(&stublist, sp->soname+1);
<>787 -                        strcpy(c, "$stub");
  785+                        memcpy(c, "$stub", sizeof("$stub"));
788786                 } else
 789787                         *c = 0;
 790788 
     
 !
13301328                                 else
 13311329                                         size += szty(t) * SZINT / SZCHAR;
 13321330                         }
<>1333 -                        snprintf(buf, 256, "%s@%d", l->n_name, size);
 1334 -                        l->n_name = IALLOC(strlen(buf) + 1);
 1335 -                        strcpy(l->n_name, buf);
  1331+                        size = snprintf(buf, 256, "%s@%d", l->n_name, size) + 1;
  1332+                        l->n_name = IALLOC(size);
  1333+                        memcpy(l->n_name, buf, size);
<_13361334                 }
 13371335         }
 13381336 #endif
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-09-19 05:48 +0200