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