1710d3
diff -ru origin-1.1.9/wodim/scsi_cdr.c master-1.1.9/wodim/scsi_cdr.c
1710d3
--- origin-1.1.9/wodim/scsi_cdr.c	2008-02-25 12:14:07.000000000 +0100
1710d3
+++ master-1.1.9/wodim/scsi_cdr.c	2009-07-16 12:01:29.000000000 +0200
1710d3
@@ -2181,26 +2181,30 @@
1710d3
 		if (inq->add_len == 0) {
1710d3
 			if (usalp->dev == DEV_UNKNOWN && got_inquiry) {
1710d3
 				usalp->dev = DEV_ACB5500;
1710d3
-				strcpy(inq->vendor_info,
1710d3
-					"ADAPTEC ACB-5500        FAKE");
1710d3
+				strncpy(inq->vendor_info, "ADAPTEC ", 8);
1710d3
+				strncpy(inq->prod_ident,"ACB-5500        ", 16);
1710d3
+				strncpy(inq->prod_revision, "FAKE", 4);
1710d3
 
1710d3
 			} else switch (usalp->dev) {
1710d3
-
1710d3
 				case DEV_ACB40X0:
1710d3
-					strcpy(inq->vendor_info,
1710d3
-							"ADAPTEC ACB-40X0        FAKE");
1710d3
+					strncpy(inq->vendor_info, "ADAPTEC ", 8);
1710d3
+					strncpy(inq->prod_ident, "ACB-40X0        ",16);
1710d3
+					strncpy(inq->prod_revision, "FAKE", 4);
1710d3
 					break;
1710d3
 				case DEV_ACB4000:
1710d3
-					strcpy(inq->vendor_info,
1710d3
-							"ADAPTEC ACB-4000        FAKE");
1710d3
+					strncpy(inq->vendor_info, "ADAPTEC ",8);
1710d3
+					strncpy(inq->prod_ident, "ACB-4000        ",16);
1710d3
+					strncpy(inq->prod_revision, "FAKE",4);
1710d3
 					break;
1710d3
 				case DEV_ACB4010:
1710d3
-					strcpy(inq->vendor_info,
1710d3
-							"ADAPTEC ACB-4010        FAKE");
1710d3
+					strncpy(inq->vendor_info, "ADAPTEC ",8);
1710d3
+					strncpy(inq->prod_ident, "ACB-4010        ",16);
1710d3
+					strncpy(inq->prod_revision, "FAKE",4);
1710d3
 					break;
1710d3
 				case DEV_ACB4070:
1710d3
-					strcpy(inq->vendor_info,
1710d3
-							"ADAPTEC ACB-4070        FAKE");
1710d3
+					strncpy(inq->vendor_info,"ADAPTEC ",8);
1710d3
+					strncpy(inq->prod_ident, "ACB-4070        ", 16);
1710d3
+					strncpy(inq->prod_revision, "FAKE",4 );
1710d3
 					break;
1710d3
 			}
1710d3
 		} else if (inq->add_len < 31) {
1710d3
@@ -2230,14 +2234,16 @@
1710d3
 
1710d3
 	case INQ_SEQD:
1710d3
 		if (usalp->dev == DEV_SC4000) {
1710d3
-			strcpy(inq->vendor_info,
1710d3
-				"SYSGEN  SC4000          FAKE");
1710d3
+			strncpy(inq->vendor_info,"SYSGEN  ",8);
1710d3
+			strncpy(inq->prod_ident, "SC4000          ",16);
1710d3
+			strncpy(inq->prod_revision, "FAKE",4);
1710d3
 		} else if (inq->add_len == 0 &&
1710d3
 					inq->removable &&
1710d3
 						inq->ansi_version == 1) {
1710d3
 			usalp->dev = DEV_MT02;
1710d3
-			strcpy(inq->vendor_info,
1710d3
-				"EMULEX  MT02            FAKE");
1710d3
+			strncpy(inq->vendor_info,"EMULEX  ",8);
1710d3
+			strncpy(inq->prod_ident, "MT02            ",16);
1710d3
+			strncpy(inq->prod_revision, "FAKE",4);
1710d3
 		}
1710d3
 		break;
1710d3