aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2007-12-05 13:06:26 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2007-12-05 13:06:26 +0000
commitcbcfc45a727d8e4d90ec6e09b729ac431a24349b (patch)
treec045ca6b3ba3fc563ac40408274894760c050570
parentad1d82b5410d8d2b04fba246cec68d9256282505 (diff)
I suppose we still need va_start/va_end when using se_strdup_vprintf.
svn path=/trunk/; revision=23769
-rw-r--r--plugins/wimax/packet-wmx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/wimax/packet-wmx.c b/plugins/wimax/packet-wmx.c
index 46c3f84dae..ccb809ebef 100644
--- a/plugins/wimax/packet-wmx.c
+++ b/plugins/wimax/packet-wmx.c
@@ -747,7 +747,9 @@ proto_tree *add_protocol_subtree(tlv_info_t *this, gint idx, proto_tree *tree, i
tlv_type = get_tlv_type(this);
/* display the TLV name and display the value in hex. Highlight type, length, and value. */
+ va_start(ap, format);
message = se_strdup_vprintf(format, ap);
+ va_end(ap);
tlv_item = proto_tree_add_protocol_format(tree, hfindex, tvb, start, length, "%s", message);
/* Correct the highlighting. */
tlv_item->finfo->start -= tlv_val_offset;