diff options
Diffstat (limited to 'toys/posix')
-rw-r--r-- | toys/posix/tar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/tar.c b/toys/posix/tar.c index 1e662589..0327c894 100644 --- a/toys/posix/tar.c +++ b/toys/posix/tar.c @@ -169,7 +169,7 @@ static void alloread(void *buf, int len) free(*b); *b = xmalloc(len+1); xreadall(TT.fd, *b, len); - b[len] = 0; + ((char*)(*b))[len] = 0; } // callback from dirtree to create archive |