aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-05-19 13:41:16 +0000
committerRoy Marples <roy@marples.name>2008-05-19 13:41:16 +0000
commit1df3ab05b55222b8de176132b87baca1fc2a72d7 (patch)
treee0c627f2159f4334cc3c1bbd0b2fa1359754f556
parent775df18a70cacb4857be43335c13d2c7a8013d6a (diff)
realloc -> xrealloc
-rw-r--r--src/librc/librc-misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librc/librc-misc.c b/src/librc/librc-misc.c
index 1ae3a283..5cde2028 100644
--- a/src/librc/librc-misc.c
+++ b/src/librc/librc-misc.c
@@ -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);