Changeset 060b3b4 for zephyr.c


Ignore:
Timestamp:
Feb 19, 2003, 12:08:41 AM (18 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
ced25d1
Parents:
89426ab
Message:
Fixed bug in unsub command that could cause file corruption.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    raecf3e6 r060b3b4  
    477477  /* we'll read the entire file into memory, minus the line we don't want and
    478478   * and at the same time create a backup file */
    479   text=malloc(LINE);
     479  text=owl_malloc(LINE);
     480  strcpy(text, "");
    480481  size=LINE;
    481482  while (fgets(buff, LINE, file)!=NULL) {
     
    483484    if (strcasecmp(buff, line)) {
    484485      size+=LINE;
    485       text=realloc(text, size);
     486      text=owl_realloc(text, size);
    486487      strcat(text, buff);
    487488    }
Note: See TracChangeset for help on using the changeset viewer.