aboutsummaryrefslogtreecommitdiffstats
path: root/diag
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-04-25 14:32:08 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-04-25 14:32:08 -0700
commitea639f46976b9e3f255cca78d3602a968f325e5d (patch)
treee54eaaf83494423af2c968aab621a84290404c5e /diag
parentb69866a20179104349d3da48663d33faf4575a1a (diff)
downloadsyslinux-ea639f46976b9e3f255cca78d3602a968f325e5d.tar.gz
syslinux-ea639f46976b9e3f255cca78d3602a968f325e5d.tar.xz
syslinux-ea639f46976b9e3f255cca78d3602a968f325e5d.zip
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@zytor.com>
Diffstat (limited to 'diag')
-rw-r--r--diag/geodsp/mk-lba-img.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/diag/geodsp/mk-lba-img.c b/diag/geodsp/mk-lba-img.c
index ed5a7ed5..eb1c3393 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;