diff options
author | Gerald Combs <gerald@wireshark.org> | 2011-02-18 22:43:48 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2011-02-18 22:43:48 +0000 |
commit | a6bbdaa8495fe13077dbe35b0f5fb7806e66342d (patch) | |
tree | 6328f7905a2f7caf857cbf0126613a0889845c7c /tap-protohierstat.c | |
parent | aaeca955a50d70ff393d847e44e4142991a1324e (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.c | 2 |
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); } |