From 05f0de58de6cbcbdc40f5a661d406b3fbe5a9060 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 23 Oct 2013 07:37:08 +0100 Subject: [PATCH] Write NUL (\0) byte, not space. --- pxzcat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pxzcat.c b/pxzcat.c index 80a8820..7e036d0 100644 --- a/pxzcat.c +++ b/pxzcat.c @@ -175,7 +175,7 @@ xzfile_uncompress (const char *filename, const char *outputfile, if (ofd == -1) error (EXIT_FAILURE, errno, "open: %s", outputfile); /* See above about auto_da_alloc. */ - write (ofd, " ", 1); + write (ofd, "\0", 1); if (ftruncate (ofd, size) == -1) error (EXIT_FAILURE, errno, "ftruncate: %s", outputfile); -- 1.8.3.1