mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-07-29 23:32:37 +00:00
Allocate one more byte than the size would indicate, since we're
null-terminating.
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user