- Timestamp:
- Oct 30, 2006, 7:32:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cacamoo/trunk/src/main.c
r1253 r1265 459 459 if(oldlen < newlen) 460 460 s2 = realloc(s2, i2 + tocopy + 1); 461 mem move(s2 + i2, s1 + i1, tocopy + 1);461 memcpy(s2 + i2, s1 + i1, tocopy + 1); 462 462 if(oldlen < newlen) 463 463 free(s1); … … 469 469 s2 = realloc(s2, i2 + tocopy + newlen); 470 470 memmove(s2 + i2, s1 + i1, tocopy); 471 memcpy(s2 + tocopy, newpiece, newlen);471 memcpy(s2 + i2 + tocopy, newpiece, newlen); 472 472 i1 += tocopy + oldlen; 473 473 i2 += tocopy + newlen;
Note: See TracChangeset
for help on using the changeset viewer.