[syslinux:master] diag/geodsp: zero-fill sectors in -1 mode

syslinux-bot for H. Peter Anvin hpa at zytor.com
Mon Apr 25 14:33:03 PDT 2011


Commit-ID:  ea639f46976b9e3f255cca78d3602a968f325e5d
Gitweb:     http://syslinux.zytor.com/commit/ea639f46976b9e3f255cca78d3602a968f325e5d
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Mon, 25 Apr 2011 14:32:08 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Mon, 25 Apr 2011 14:32:08 -0700

diag/geodsp: zero-fill sectors in -1 mode

In -1 mode, zero-fill the sector instead of writing whatever garbage
was in the buffer already.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 diag/geodsp/mk-lba-img.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/diag/geodsp/mk-lba-img.c b/diag/geodsp/mk-lba-img.c
index ed5a7ed..eb1c339 100644
--- a/diag/geodsp/mk-lba-img.c
+++ b/diag/geodsp/mk-lba-img.c
@@ -74,6 +74,8 @@ int main(int argc, char *argv[])
 		lba++;
 	}
 
+	memset(b, 0, sizeof b);
+
 	while (lba < NUM_SECT) {
 		if (one) {
 			b[0] = lba;



More information about the Syslinux-commits mailing list