- Timestamp:
- Feb 19, 2003, 12:08:41 AM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- ced25d1
- Parents:
- 89426ab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zephyr.c
raecf3e6 r060b3b4 477 477 /* we'll read the entire file into memory, minus the line we don't want and 478 478 * and at the same time create a backup file */ 479 text=malloc(LINE); 479 text=owl_malloc(LINE); 480 strcpy(text, ""); 480 481 size=LINE; 481 482 while (fgets(buff, LINE, file)!=NULL) { … … 483 484 if (strcasecmp(buff, line)) { 484 485 size+=LINE; 485 text= realloc(text, size);486 text=owl_realloc(text, size); 486 487 strcat(text, buff); 487 488 }
Note: See TracChangeset
for help on using the changeset viewer.