summaryrefslogtreecommitdiffstats
path: root/common.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-05-19 13:40:39 +0000
committerRoy Marples <roy@marples.name>2008-05-19 13:40:39 +0000
commit8c6735148fad82183dc4b454186930f266e2aaaf (patch)
tree4580c323a6b952a97dbb3f225d699ac06be1d22d /common.c
parent7b15d336d981587e32a738d5d6186516b528ff12 (diff)
downloaddhcpcd-8c6735148fad82183dc4b454186930f266e2aaaf.tar.xz
realloc -> xrealloc
Diffstat (limited to 'common.c')
-rw-r--r--common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.c b/common.c
index 513e1251..32df8844 100644
--- a/common.c
+++ b/common.c
@@ -58,7 +58,7 @@ get_line(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);