diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-12 22:42:33 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-12 22:42:33 +0000 |
commit | 372686bde7b4c0abaf01123d8dda1dc6ab9a92e2 (patch) | |
tree | b92d3fb32074fc429866c41759b38c83f6ba950a /libbb | |
parent | 9c267b851e54441b867293973fd5a898b847df39 (diff) | |
download | busybox-372686bde7b4c0abaf01123d8dda1dc6ab9a92e2.tar.gz |
cut, mount: small improvements
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/get_line_from_file.c | 1 |
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; |