Make colors work on GTK3 take 2
[obnox/wireshark/wip.git] / tap-protohierstat.c
index b8db44fc394f3a213b43f2974c6cb64649a2adf9..89eac20d1c3b559c5ff0ed8f287699fab6e30edf 100644 (file)
@@ -151,7 +151,7 @@ phs_draw(phs_t *rs, int indentation)
                        }
                        stroff+=g_snprintf(str+stroff, MAXPHSLINE-stroff, "  ");
                }
-               stroff+=g_snprintf(str+stroff, MAXPHSLINE-stroff, "%s", rs->proto_name);
+               g_snprintf(str+stroff, MAXPHSLINE-stroff, "%s", rs->proto_name);
                printf("%-40s frames:%d bytes:%" G_GINT64_MODIFIER "d\n",str, rs->frames, rs->bytes);
                phs_draw(rs->child, indentation+1);
        }