SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View 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);
}