From 439a14da1d59753c448d039928432948bc80781e Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 13 Apr 2013 12:11:26 +0200 Subject: [PATCH] Bug fix: Reserved and unused fields of APM entries were not zeroed. --- libisofs/system_area.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libisofs/system_area.c b/libisofs/system_area.c index 3f67975..a7f8c84 100644 --- a/libisofs/system_area.c +++ b/libisofs/system_area.c @@ -880,7 +880,7 @@ static int iso_write_apm_entry(Ecma119Image *t, int apm_block_size, else block_fac = 2048 / apm_block_size; - memset(buf, apm_block_size, 0); + memset(buf, 0, apm_block_size); wpt = buf; /* Signature */