summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi/scsi_all.h
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>1998-10-15 19:08:58 +0000
committerken <ken@FreeBSD.org>1998-10-15 19:08:58 +0000
commit4af1fad569333ad49179b946f0f2eb11e765eb19 (patch)
treef907c12e0ea43b903d5b2337315a537b0f641a79 /sys/cam/scsi/scsi_all.h
parent45d6171cea0b7b20eb4213c5bccb375c081c4bb6 (diff)
downloadFreeBSD-src-4af1fad569333ad49179b946f0f2eb11e765eb19.zip
FreeBSD-src-4af1fad569333ad49179b946f0f2eb11e765eb19.tar.gz
Fix several potential buffer overrun conditions. These changes have been
tested both in the kernel and in userland. Also, fix a couple of printf warnings that show up when CAMDEBUG is defined. Reviewed by: imp Partially submitted by: imp
Diffstat (limited to 'sys/cam/scsi/scsi_all.h')
-rw-r--r--sys/cam/scsi/scsi_all.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/cam/scsi/scsi_all.h b/sys/cam/scsi/scsi_all.h
index adc16cf..5369607 100644
--- a/sys/cam/scsi/scsi_all.h
+++ b/sys/cam/scsi/scsi_all.h
@@ -14,7 +14,7 @@
*
* Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
*
- * $Id: scsi_all.h,v 1.3 1998/09/29 22:11:30 ken Exp $
+ * $Id: scsi_all.h,v 1.4 1998/10/02 05:25:49 ken Exp $
*/
/*
@@ -709,7 +709,8 @@ int scsi_interpret_sense(struct cam_device *device,
const char * scsi_op_desc(u_int16_t opcode,
struct scsi_inquiry_data *inq_data);
-char * scsi_cdb_string(u_int8_t *cdb_ptr, char *cdb_string);
+char * scsi_cdb_string(u_int8_t *cdb_ptr, char *cdb_string,
+ size_t len);
void scsi_print_inquiry(struct scsi_inquiry_data *inq_data);
OpenPOWER on IntegriCloud