cut, mount: small improvements

This commit is contained in:
Denis Vlasenko
2006-10-12 22:42:33 +00:00
parent 9c267b851e
commit 372686bde7
4 changed files with 29 additions and 30 deletions

View File

@ -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;