diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-02-21 21:04:59 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-02-21 21:04:59 +0000 |
commit | c5a71b1006c2db26767af85f2918a3ae4ecf40cb (patch) | |
tree | 9e721eb2a05768a3fdb83b7f9f644ecfe6ab9311 /epan/dissectors/packet-ansi_637.c | |
parent | a3fca224722242f067324cdbadee13db6c11ba7c (diff) |
String passed to val_to_str() must have int format specifier (%u, %d, %x, and so on...).
Fix some cases (easy to grep) by call to val_to_str_const().
svn path=/trunk/; revision=47807
Diffstat (limited to 'epan/dissectors/packet-ansi_637.c')
-rw-r--r-- | epan/dissectors/packet-ansi_637.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ansi_637.c b/epan/dissectors/packet-ansi_637.c index 8e79dc8ab4..edeaf61987 100644 --- a/epan/dissectors/packet-ansi_637.c +++ b/epan/dissectors/packet-ansi_637.c @@ -818,7 +818,7 @@ tele_param_pri_ind(tvbuff_t *tvb, proto_tree *tree, guint len, guint32 offset) oct = tvb_get_guint8(tvb, offset); - str=val_to_str((oct&0xc0)>>6, tele_param_pri_ind_strings, "Unknown"); + str=val_to_str_const((oct&0xc0)>>6, tele_param_pri_ind_strings, "Unknown"); other_decode_bitfield_value(ansi_637_bigbuf, oct, 0xc0, 8); proto_tree_add_text(tree, tvb, offset, 1, |