[syslinux:master] sysdump: don't include final null byte in version file
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Sun Feb 7 17:18:02 PST 2010
Commit-ID: 17ab9b273139a1e81ced7ce1ea4f5a7fb063df00
Gitweb: http://syslinux.zytor.com/commit/17ab9b273139a1e81ced7ce1ea4f5a7fb063df00
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 7 Feb 2010 17:17:35 -0800
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 7 Feb 2010 17:17:35 -0800
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 at zytor.com>
---
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 f4b5ad9..d4a0320 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);
More information about the Syslinux-commits
mailing list