aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-07 17:17:35 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-07 17:17:35 -0800
commit17ab9b273139a1e81ced7ce1ea4f5a7fb063df00 (patch)
tree9b3a0a01f4c12dae7d88b0a24ec22febfb6db8cf
parent79cd64f95cb84d3e72ae9fd51af6a704d4bcf8ab (diff)
downloadsyslinux.git-17ab9b273139a1e81ced7ce1ea4f5a7fb063df00.tar.gz
syslinux.git-17ab9b273139a1e81ced7ce1ea4f5a7fb063df00.tar.xz
syslinux.git-17ab9b273139a1e81ced7ce1ea4f5a7fb063df00.zip
sysdump: don't include final null byte in version file
We don't want the null byte at the end as part of the version file. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--com32/sysdump/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/sysdump/main.c b/com32/sysdump/main.c
index f4b5ad92..d4a0320e 100644
--- a/com32/sysdump/main.c
+++ b/com32/sysdump/main.c
@@ -36,7 +36,7 @@ static void dump_all(struct backend *be, const char *argv[])
{
cpio_init(be, argv);
- cpio_writefile(be, "sysdump", version, sizeof version);
+ cpio_writefile(be, "sysdump", version, sizeof version-1);
dump_memory_map(be);
dump_memory(be);