aboutsummaryrefslogtreecommitdiffstats
path: root/asn1
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2006-03-30 16:13:37 +0000
committerGerald Combs <gerald@wireshark.org>2006-03-30 16:13:37 +0000
commitf87b0f78ae476eb5444320a0fa986041d1571b62 (patch)
treefd053c378c6f836c3872edffd4e0263315e7e7f9 /asn1
parent4ea62e57b067f96df69a313b1748a9ceb236687b (diff)
Fix an off-by-one error.
svn path=/trunk/; revision=17771
Diffstat (limited to 'asn1')
-rw-r--r--asn1/gsmmap/gsmmap.cnf3
1 files changed, 2 insertions, 1 deletions
diff --git a/asn1/gsmmap/gsmmap.cnf b/asn1/gsmmap/gsmmap.cnf
index ba5cd12e41..112c6783bd 100644
--- a/asn1/gsmmap/gsmmap.cnf
+++ b/asn1/gsmmap/gsmmap.cnf
@@ -426,6 +426,7 @@ Component
guint8 octet;
guint8 length;
guint8 out_len;
+ /* XXX - The maximum item label length is 240. Does this really need to be 1024? */
static char bigbuf[1024];
octet = tvb_get_guint8(tvb,0);
@@ -435,7 +436,7 @@ Component
tvb_get_ptr(tvb, offset+2, length), bigbuf);
bigbuf[out_len] = '\0';
gsm_sms_char_ascii_decode(bigbuf, bigbuf, out_len);
- bigbuf[1024] = '\0';
+ bigbuf[1023] = '\0';
proto_tree_add_text(tree, tvb, offset+2, length, "USSD String: %%s", bigbuf);