- Timestamp:
- Oct 28, 2006, 10:22:58 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cacamoo/trunk/src/main.c
r1250 r1251 283 283 free(buffer); 284 284 285 cucul_free_buffer(input_buffer); 286 cucul_free_buffer(output_buffer); 287 cucul_free_canvas(canvas); 288 289 285 290 return 0; 286 291 } … … 511 516 char *c = NULL; 512 517 char *newstr = NULL; 518 char *orig = str; 513 519 514 520 if(oldpiece==NULL || newpiece==NULL) 515 521 return NULL; 516 522 517 if ((c = (char *) strstr(str, oldpiece)) == NULL) {523 if ((c = (char *) strstr(str, oldpiece)) == NULL) 518 524 return str; 519 } 520 521 newstr = malloc( 1024);525 526 527 newstr = malloc(8192); // FIXME 522 528 523 529 if(newstr == NULL) … … 553 559 strcpy(newstr+newstr_index, str+str_index); 554 560 561 str = orig; 555 562 return newstr; 556 563 }
Note: See TracChangeset
for help on using the changeset viewer.