aboutsummaryrefslogtreecommitdiffstats
path: root/packet-scsi.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-10-28 17:27:56 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-10-28 17:27:56 +0000
commit5b14cbd8e6f667bb5f359fa1e8a251fd996d818d (patch)
tree62eacd406328c669f7f5036bcf6ef76c66a7ddf3 /packet-scsi.c
parent004b2a7f1ab4dcb73453f42d8bf27765001dda77 (diff)
"%.*" expects an "int" argument giving the precision.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8801 f5534014-38df-0310-8fa8-9805f1628bb7
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;
}