aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-iscsi.c
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2010-04-29 22:36:40 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2010-04-29 22:36:40 +0000
commit74999a25259261e1ec0d0b5f4e565223f397293b (patch)
tree44518817f9b3f13a1e6aee03aec9fa10524400c8 /epan/dissectors/packet-iscsi.c
parentdf8a6151c7436be2313abd1484a01a4743bba36f (diff)
Terminate a string so that strchr doesn't wander off. Hopefully fixes bugs
4725 and 4728. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32608 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-iscsi.c')
-rw-r--r--epan/dissectors/packet-iscsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-iscsi.c b/epan/dissectors/packet-iscsi.c
index 7adaced7e9..11be3d89a3 100644
--- a/epan/dissectors/packet-iscsi.c
+++ b/epan/dissectors/packet-iscsi.c
@@ -618,7 +618,7 @@ addTextKeys(packet_info *pinfo, proto_tree *tt, tvbuff_t *tvb, gint offset, guin
len = len + 1;
}
- key = ep_memdup(tvb_get_ptr(tvb, offset, len), len);
+ key = ep_strndup(tvb_get_ptr(tvb, offset, len), len);
if (key == NULL) {
break;
}