X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Flist.c;h=425ba7cb45bec3695c2497b1d2a2319ca2191480;hb=fb1c65e512181db1c43c19c708a8e1c795cbd31c;hp=8169a7968704294d4aafeefeb746cfcd244b1f1e;hpb=85f651c8c69c45c2df5ea6d9bd8efb3b6c28584f;p=chaz%2Ftar diff --git a/src/list.c b/src/list.c index 8169a79..425ba7c 100644 --- a/src/list.c +++ b/src/list.c @@ -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;