diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2007-12-05 13:06:26 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2007-12-05 13:06:26 +0000 |
commit | cbcfc45a727d8e4d90ec6e09b729ac431a24349b (patch) | |
tree | c045ca6b3ba3fc563ac40408274894760c050570 /plugins | |
parent | ad1d82b5410d8d2b04fba246cec68d9256282505 (diff) | |
download | wireshark-cbcfc45a727d8e4d90ec6e09b729ac431a24349b.tar.gz wireshark-cbcfc45a727d8e4d90ec6e09b729ac431a24349b.tar.bz2 wireshark-cbcfc45a727d8e4d90ec6e09b729ac431a24349b.zip |
I suppose we still need va_start/va_end when using se_strdup_vprintf.
svn path=/trunk/; revision=23769
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/wimax/packet-wmx.c | 2 |
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; |