aboutsummaryrefslogtreecommitdiffstats
path: root/packet-scsi.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-10-28 17:27:56 +0000
committerGuy Harris <guy@alum.mit.edu>2003-10-28 17:27:56 +0000
commitfa3680223bde436236126d0dd16e606dea9eaa28 (patch)
tree62eacd406328c669f7f5036bcf6ef76c66a7ddf3 /packet-scsi.c
parenta185c70b18ceab4f11cc100932c393300655625d (diff)
"%.*" expects an "int" argument giving the precision.
svn path=/trunk/; revision=8801
Diffstat (limited to 'packet-scsi.c')
-rw-r--r--packet-scsi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/packet-scsi.c b/packet-scsi.c
index 9f35a08c66..501783c3e2 100644
--- a/packet-scsi.c
+++ b/packet-scsi.c
@@ -2,7 +2,7 @@
* Routines for decoding SCSI CDBs and responses
* Author: Dinesh G Dutt (ddutt@cisco.com)
*
- * $Id: packet-scsi.c,v 1.34 2003/10/28 03:57:49 guy Exp $
+ * $Id: packet-scsi.c,v 1.35 2003/10/28 17:27:56 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1570,7 +1570,8 @@ dissect_scsi_evpd (tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
if (plen > 0) {
str = tvb_get_ptr (tvb, offset, plen);
proto_tree_add_text (evpd_tree, tvb, offset, plen,
- "Product Serial Number: %.*s", plen, str);
+ "Product Serial Number: %.*s", (int)plen,
+ str);
}
break;
}