Revert to the previous formatting of the item.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 16 Jan 2005 00:48:25 +0000 (00:48 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 16 Jan 2005 00:48:25 +0000 (00:48 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13058 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-x11.c

index c6b428294b5c28ddea7833e86d622394c3b363c3..07c6c1e8d11d4297da0c4cdc99a7fb03f3da77b9 100644 (file)
@@ -1795,7 +1795,6 @@ static void listOfKeycode(tvbuff_t *tvb, int *offsetp, proto_tree *t, int hf,
         ++m, *offsetp += keycodes_per_modifier) {
            const guint8 *p;
            proto_item *tikc;
-           char *sep = ": ";
            int i;
 
            p = tvb_get_ptr(tvb, *offsetp, keycodes_per_modifier);
@@ -1803,15 +1802,12 @@ static void listOfKeycode(tvbuff_t *tvb, int *offsetp, proto_tree *t, int hf,
                g_malloc(sizeof(*modifiermap[m]) * keycodes_per_modifier);
 
            tikc = proto_tree_add_bytes_format(tt, hf_x11_keycodes_item, tvb,
-               *offsetp, keycodes_per_modifier, p,
-               "Keycode list for %s", modifiers[m]);
+               *offsetp, keycodes_per_modifier, p, "item: ");
            for(i = 0; i < keycodes_per_modifier; ++i) {
                guchar c = p[i];
 
-               if (c) {
-                   proto_item_append_text(tikc, "%s%u", sep, c);
-                   sep = ", ";
-               }
+               if (c)
+                   proto_item_append_text(tikc, " %s=%d", modifiers[m], c);
 
                modifiermap[m][i] = c;
            }