aboutsummaryrefslogtreecommitdiffstats
path: root/packet-gtp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-02-27 09:25:27 +0000
committerGuy Harris <guy@alum.mit.edu>2004-02-27 09:25:27 +0000
commitfe0af69f9f82c09091121a2257c1a2e4a081634b (patch)
tree4b0c4989a340132a992a1ae68341d465eb873f32 /packet-gtp.c
parent8a64e8b413d713c69a2d0bbcafa036777e77a084 (diff)
downloadwireshark-fe0af69f9f82c09091121a2257c1a2e4a081634b.tar.gz
wireshark-fe0af69f9f82c09091121a2257c1a2e4a081634b.tar.bz2
wireshark-fe0af69f9f82c09091121a2257c1a2e4a081634b.zip
Fix up the previous checkin.
svn path=/trunk/; revision=10248
Diffstat (limited to 'packet-gtp.c')
-rw-r--r--packet-gtp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/packet-gtp.c b/packet-gtp.c
index 6ecc05cd5e..bf2115945a 100644
--- a/packet-gtp.c
+++ b/packet-gtp.c
@@ -4,7 +4,7 @@
* Copyright 2001, Michal Melerowicz <michal.melerowicz@nokia.com>
* Nicolas Balkota <balkota@mac.com>
*
- * $Id: packet-gtp.c,v 1.72 2004/02/25 09:31:05 guy Exp $
+ * $Id: packet-gtp.c,v 1.73 2004/02/27 09:25:27 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -3306,8 +3306,7 @@ decode_apn(tvbuff_t *tvb, int offset, guint16 length, proto_tree *tree) {
name_len = tvb_get_guint8 (tvb, offset);
if (name_len < 0x20) {
- apn = tvb_get_string(tvb, offset + 1, length);
- tvb_memcpy (tvb, apn, offset + 1, length);
+ apn = tvb_get_string(tvb, offset + 1, length - 1);
for (;;) {
if (name_len >= length - 1) break;
tmp = name_len;