X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib.c;h=4f1fee35ad93496eccf43d0b39aa16e1bb073f9f;hp=d9900aa541a04c56e1b34aa8013413a581aa5c4b;hb=ba5e3af4ea19e1d20c80941c077039871ec84258;hpb=a8477ebaa09990b3688164cbe5cf661c4189541d diff --git a/lib.c b/lib.c index d9900aa..4f1fee3 100644 --- a/lib.c +++ b/lib.c @@ -397,13 +397,13 @@ char *mutt_read_line (char *s, size_t * size, FILE * fp, int *line) char *ch; if (!s) { - s = safe_malloc (STRING); + s = mem_malloc (STRING); *size = STRING; } FOREVER { if (fgets (s + offset, *size - offset, fp) == NULL) { - FREE (&s); + mem_free (&s); return NULL; } if ((ch = strchr (s + offset, '\n')) != NULL) { @@ -433,7 +433,7 @@ char *mutt_read_line (char *s, size_t * size, FILE * fp, int *line) /* There wasn't room for the line -- increase ``s'' */ offset = *size - 1; /* overwrite the terminating 0 */ *size += STRING; - safe_realloc (&s, *size); + mem_realloc (&s, *size); } } }