SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
16
audio/libworkman/patches/patch-scsi_c
Normal file
16
audio/libworkman/patches/patch-scsi_c
Normal file
|
@ -0,0 +1,16 @@
|
|||
Index: scsi.c
|
||||
--- scsi.c.orig
|
||||
+++ scsi.c
|
||||
@@ -202,9 +202,9 @@ wm_scsi_get_drive_type( struct wm_drive *d, char *vend
|
||||
wm_lib_message(WM_MSG_LEVEL_INFO|WM_MSG_CLASS, "Sending SCSI inquiry command...");
|
||||
if (sendscsi(d, buf, sizeof(buf), 1, SCMD_INQUIRY, 0, 0, 0, sizeof(buf), 0,0,0,0,0,0,0))
|
||||
{
|
||||
- sprintf( vendor, WM_STR_GENVENDOR);
|
||||
- sprintf( model, WM_STR_GENMODEL);
|
||||
- sprintf( rev, WM_STR_GENREV);
|
||||
+ strlcpy( vendor, WM_STR_GENVENDOR, sizeof(vendor));
|
||||
+ strlcpy( model, WM_STR_GENMODEL, sizeof(model));
|
||||
+ strlcpy( rev, WM_STR_GENREV, sizeof(rev));
|
||||
wm_lib_message(WM_MSG_LEVEL_ERROR|WM_MSG_CLASS, "\nSCSI inquiry command not supported by the hardware\n");
|
||||
return (WM_ERR_SCSI_INQUIRY_FAILED);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue