[stgt] [PATCH] 1/1 Buffer too small to hold date.

Mark Harvey markh794 at gmail.com
Thu Jun 25 12:03:03 CEST 2009


Unfortunately, this will make the media incompatible as this changes the MAM struct size.


>From aca48152858f7d345d07388b82cf232b7d7d6086 Mon Sep 17 00:00:00 2001
From: Mark Harvey <markh794 at gmail.com>
Date: Mon, 22 Jun 2009 16:12:07 +1000
Subject: Need 10 byte array to hold number of secs.

Signed-off-by: Mark Harvey <markh794 at gmail.com>
---
 usr/ssc.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usr/ssc.h b/usr/ssc.h
index b72f2bc..4451c2a 100644
--- a/usr/ssc.h
+++ b/usr/ssc.h
@@ -43,7 +43,7 @@ struct MAM_info {
 	uint32_t medium_width;
 	uint8_t assigning_organization_2[8];
 	uint8_t medium_density_code;
-	uint8_t medium_manufacture_date[8];
+	uint8_t medium_manufacture_date[10];
 	uint64_t MAM_capacity;
 	uint8_t medium_type;
 	uint16_t medium_type_information;
-- 
1.5.4.3

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list