aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/tar.c')
-rw-r--r--toys/posix/tar.c2
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