diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-02-07 17:17:35 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-07 17:17:35 -0800 |
commit | 17ab9b273139a1e81ced7ce1ea4f5a7fb063df00 (patch) | |
tree | 9b3a0a01f4c12dae7d88b0a24ec22febfb6db8cf /com32/sysdump | |
parent | 79cd64f95cb84d3e72ae9fd51af6a704d4bcf8ab (diff) | |
download | syslinux-17ab9b273139a1e81ced7ce1ea4f5a7fb063df00.tar.gz |
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>
Diffstat (limited to 'com32/sysdump')
-rw-r--r-- | com32/sysdump/main.c | 2 |
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); |