aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/ansi_tcap
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2010-06-04 19:28:39 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2010-06-04 19:28:39 +0000
commit2efec6f8c5fab5feee816f6c5d710c463a4a97da (patch)
treecc56018278760515f9a09bf9cff8300ed21745b0 /asn1/ansi_tcap
parentf6b2458924a0fef8d513642515bdd3a297fbfee0 (diff)
tcaphash_context_t.oid is of size LENGTH_OID+1, not LENGTH_OID. Just use sizeof(tcaphash_context_t.oid) instead of LENGTH_OID so we can use that last byte. This allows us to retrieve the whole ACN when the ACN is LENGTH_OID bytes long.
svn path=/trunk/; revision=33089
Diffstat (limited to 'asn1/ansi_tcap')
-rw-r--r--asn1/ansi_tcap/packet-ansi_tcap-template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asn1/ansi_tcap/packet-ansi_tcap-template.c b/asn1/ansi_tcap/packet-ansi_tcap-template.c
index ec001265d3..8ff2eaf01f 100644
--- a/asn1/ansi_tcap/packet-ansi_tcap-template.c
+++ b/asn1/ansi_tcap/packet-ansi_tcap-template.c
@@ -362,7 +362,7 @@ dissect_ansi_tcap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
*/
if ( p_tcap_context && cur_oid && !p_tcap_context->oid_present ) {
/* Save the application context and the sub dissector */
- g_strlcpy(p_tcap_context->oid,cur_oid, LENGTH_OID);
+ g_strlcpy(p_tcap_context->oid, cur_oid, sizeof(p_tcap_context->oid));
if ( (subdissector_handle = dissector_get_string_handle(ber_oid_dissector_table, cur_oid)) ) {
p_tcap_context->subdissector_handle=subdissector_handle;
p_tcap_context->oid_present=TRUE;