summaryrefslogtreecommitdiffhomepage
path: root/libbb/get_line_from_file.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-12 22:42:33 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-12 22:42:33 +0000
commit372686bde7b4c0abaf01123d8dda1dc6ab9a92e2 (patch)
treeb92d3fb32074fc429866c41759b38c83f6ba950a /libbb/get_line_from_file.c
parent9c267b851e54441b867293973fd5a898b847df39 (diff)
cut, mount: small improvements
Diffstat (limited to 'libbb/get_line_from_file.c')
-rw-r--r--libbb/get_line_from_file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/get_line_from_file.c b/libbb/get_line_from_file.c
index de49eb51d..722a904b5 100644
--- a/libbb/get_line_from_file.c
+++ b/libbb/get_line_from_file.c
@@ -41,6 +41,7 @@ char *bb_get_chunk_from_file(FILE * file, int *end)
free(linebuf);
return NULL;
}
+ linebuf = xrealloc(linebuf, idx+1);
linebuf[idx] = 0;
}
return linebuf;