realloc -> xrealloc

This commit is contained in:
Roy Marples 2008-05-19 13:41:16 +00:00
parent 775df18a70
commit 1df3ab05b5

View File

@ -62,7 +62,7 @@ ssize_t rc_getline(char **line, size_t *len, FILE *fp)
while(!feof(fp)) {
if (*line == NULL || last != 0) {
*len += BUFSIZ;
*line = realloc(*line, *len);
*line = xrealloc(*line, *len);
}
p = *line + last;
memset(p, 0, BUFSIZ);