diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-12-09 00:52:02 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-12-09 00:52:02 +0000 |
commit | 89e73994ef57b053e1221e4bb5a50a53aec37cc5 (patch) | |
tree | c47f914ae7308abcd82d787bfa0dc17cf4ccebb0 /packet-ansi_637.c | |
parent | d942d3129655d565692cebac646b32e3abf0fbcf (diff) |
From Michael Lum: fix incorrect switch values which resulted in NULL
strings being passed to ..._add_text().
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9215 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ansi_637.c')
-rw-r--r-- | packet-ansi_637.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/packet-ansi_637.c b/packet-ansi_637.c index 1c37b8151a..9bec802790 100644 --- a/packet-ansi_637.c +++ b/packet-ansi_637.c @@ -9,7 +9,7 @@ * Short Message Service * 3GPP2 C.S0015-0 TIA/EIA-637-A * - * $Id: packet-ansi_637.c,v 1.4 2003/12/08 23:40:12 guy Exp $ + * $Id: packet-ansi_637.c,v 1.5 2003/12/09 00:52:02 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -583,10 +583,10 @@ tele_param_pri_ind(tvbuff_t *tvb, proto_tree *tree, guint len, guint32 offset) switch ((oct & 0xc0) >> 6) { - case 0x00: str = "Normal"; break; - case 0x01: str = "Interactive"; break; - case 0x10: str = "Urgent"; break; - case 0x11: str = "Emergency"; break; + case 0: str = "Normal"; break; + case 1: str = "Interactive"; break; + case 2: str = "Urgent"; break; + case 3: str = "Emergency"; break; } other_decode_bitfield_value(ansi_637_bigbuf, oct, 0xc0, 8); @@ -880,10 +880,10 @@ tele_param_disp_mode(tvbuff_t *tvb, proto_tree *tree, guint len, guint32 offset) switch ((oct & 0xc0) >> 6) { - case 0x00: str = "Immediate Display: The mobile station is to display the received message as soon as possible."; break; - case 0x01: str = "Mobile default setting: The mobile station is to display the received message based on a pre-defined mode in the mobile station."; break; - case 0x10: str = "User Invoke: The mobile station is to display the received message based on the mode selected by the user."; break; - case 0x11: str = "Reserved"; break; + case 0: str = "Immediate Display: The mobile station is to display the received message as soon as possible."; break; + case 1: str = "Mobile default setting: The mobile station is to display the received message based on a pre-defined mode in the mobile station."; break; + case 2: str = "User Invoke: The mobile station is to display the received message based on the mode selected by the user."; break; + case 3: str = "Reserved"; break; } other_decode_bitfield_value(ansi_637_bigbuf, oct, 0xc0, 8); |