aboutsummaryrefslogtreecommitdiffstats
path: root/tap-protohierstat.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2011-02-18 22:43:48 +0000
committerGerald Combs <gerald@wireshark.org>2011-02-18 22:43:48 +0000
commita6bbdaa8495fe13077dbe35b0f5fb7806e66342d (patch)
tree6328f7905a2f7caf857cbf0126613a0889845c7c /tap-protohierstat.c
parentaaeca955a50d70ff393d847e44e4142991a1324e (diff)
Fix some dead code and zero division issues found by Clang scan-build.
In convert_string_case() use g_utf8_strup() instead of converting each character by hand. Hopefully this won't cause any unexpected changes in behavior. svn path=/trunk/; revision=36006
Diffstat (limited to 'tap-protohierstat.c')
-rw-r--r--tap-protohierstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tap-protohierstat.c b/tap-protohierstat.c
index b8db44fc39..89eac20d1c 100644
--- a/tap-protohierstat.c
+++ b/tap-protohierstat.c
@@ -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);
}