Allocate one more byte than the size would indicate, since we're

null-terminating.
This commit is contained in:
Paul Eggert
2001-09-23 06:18:20 +00:00
parent 1b10ab140f
commit e6e72bf7ed
+1 -1
View File
@@ -352,7 +352,7 @@ read_header (bool raw_extended_headers)
set_next_block_after (header);
if (*longp)
free (*longp);
*longp = xmalloc (size);
*longp = xmalloc (size + 1);
**longp = *header;
bp = (*longp)->buffer + BLOCKSIZE;