Quick fix for Bug #4040.
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 23 Sep 2009 16:06:39 +0000 (16:06 +0000)
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 23 Sep 2009 16:06:39 +0000 (16:06 +0000)
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4040

ToDo: Fix usage of
 gchar xxx[..][..] = {"aaa", "bbb", ...};

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30094 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-gsm_a_gm.c

index 622aba0111b145f29adc5ea4a2e79d5b3bad95bd..a7f8e961548a458e2f13a2877579a0335c265081 100644 (file)
@@ -999,8 +999,9 @@ de_gmm_ms_net_cap(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gc
     proto_tree_add_text(tree,
                         tvb, curr_offset, 1,
                         "PS inter-RAT HO to UTRAN Iu mode capability: (%u) %s",
-                        oct,
-                        answer_ps_irat[oct]);
+                        oct & 0x1,                    /* XXX: There's only 2 entries in the ..._irat array  */
+                        answer_ps_irat[oct & 0x1]);   /*      so we'll assume that this is a 1 bit value.   */
+                                                      
 
     proto_tree_add_text(tree,
                         tvb, curr_offset, 1,