aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/flow_graph.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2009-03-19 17:49:11 +0000
committerBill Meier <wmeier@newsguy.com>2009-03-19 17:49:11 +0000
commit27024a1d5a68dada122f48278e3e03b3265b42be (patch)
treedce7e8db6fd72a6884fca77c99fdfbd2750ab015 /gtk/flow_graph.c
parentfa9e9a5e336bddcaabeff751034161c46e38a2f6 (diff)
As suggested by Jakub Zawadzki: actually use sizeof(...) rather than a numeric constant in various places;
svn path=/trunk/; revision=27800
Diffstat (limited to 'gtk/flow_graph.c')
-rw-r--r--gtk/flow_graph.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/flow_graph.c b/gtk/flow_graph.c
index 745b6debe0..c23fa6030a 100644
--- a/gtk/flow_graph.c
+++ b/gtk/flow_graph.c
@@ -334,14 +334,14 @@ static int flow_graph_tcp_add_to_graph(packet_info *pinfo, const struct tcpheade
bpos = 1 << i;
if (tcph->th_flags & bpos) {
if (flags_found) {
- g_strlcat(flags, ", ", 64);
+ g_strlcat(flags, ", ", sizeof(flags));
}
- g_strlcat(flags, fstr[i], 64);
+ g_strlcat(flags, fstr[i], sizeof(flags));
flags_found = TRUE;
}
}
if (flags[0] == '\0') {
- g_snprintf (flags, 64, "<None>");
+ g_snprintf (flags, sizeof(flags), "<None>");
}
if ((tcph->th_have_seglen)&&(tcph->th_seglen!=0)){