diff options
author | Anders Broman <anders.broman@ericsson.com> | 2007-10-23 05:50:00 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2007-10-23 05:50:00 +0000 |
commit | 1950ffc2141ffdb7a0b8ec8291b0bf99ac12d9d6 (patch) | |
tree | a3358964f8621efae38bb4df4903f6b9f3f46ea5 /epan/dissectors/packet-h248_annex_c.c | |
parent | e78cce5fbd7a11b0d3122b6d64968c15ea3106f8 (diff) |
Apply the small performance enhancment patches for:
- if offset is 0, tvb_length is the same as tvb_length_remaining, just faster.
Replace
- col_append_fstr() with faster col_append_str()
- col_add_str() with col_set_str()
when it's safe
svn path=/trunk/; revision=23252
Diffstat (limited to 'epan/dissectors/packet-h248_annex_c.c')
-rw-r--r-- | epan/dissectors/packet-h248_annex_c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-h248_annex_c.c b/epan/dissectors/packet-h248_annex_c.c index e2df0f6056..98348f39d0 100644 --- a/epan/dissectors/packet-h248_annex_c.c +++ b/epan/dissectors/packet-h248_annex_c.c @@ -776,7 +776,7 @@ static void dissect_h248_annexc_NSAP(proto_tree* tree, asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); dissect_ber_octet_string(implicit_p ? *((gboolean*)implicit_p) : FALSE, &asn1_ctx, tree, tvb, 0, hfid, &new_tvb); if (new_tvb) { - dissect_nsap(new_tvb, 0,tvb_length_remaining(new_tvb, 0), tree); + dissect_nsap(new_tvb, 0,tvb_length(new_tvb), tree); if ( h248_info->term && ! h248_info->term->nsap) { h248_info->term->nsap = se_strdup(tvb_bytes_to_str(new_tvb,0,tvb_length(new_tvb))); } |