aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-12-05 10:27:49 +0000
committerGuy Harris <guy@alum.mit.edu>2007-12-05 10:27:49 +0000
commit0be3a6524faa63ea7225dbda8e8aff8ab2be5bf7 (patch)
treee7f7ba22fb2c3a269b06c979ab2d08b82e154eda /plugins
parenta46aade74658522d7b1d16c3380d48cc16810b6d (diff)
To generate a session-lifetime string given a format and va_list, use
se_strdup_vprintf(). svn path=/trunk/; revision=23765
Diffstat (limited to 'plugins')
-rw-r--r--plugins/wimax/packet-wmx.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/wimax/packet-wmx.c b/plugins/wimax/packet-wmx.c
index b737196720..46c3f84dae 100644
--- a/plugins/wimax/packet-wmx.c
+++ b/plugins/wimax/packet-wmx.c
@@ -747,13 +747,7 @@ 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. */
- if( (message = se_alloc_array(gchar, 255)) ){
- va_start(ap, format);
- vsprintf(message, format, ap);
- va_end(ap);
- } else {
- message = "Memory error";
- }
+ message = se_strdup_vprintf(format, 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;