From 683be94830ce733d8b3c66a76b31194b4ac252d3 Mon Sep 17 00:00:00 2001 From: jason taylor Date: Wed, 14 Nov 2018 23:18:52 -0500 Subject: [PATCH] profiling: set loop limit to match array size Signed-off-by: jason taylor --- src/util-profiling.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util-profiling.c b/src/util-profiling.c index f68b835870..6e32c05e4c 100644 --- a/src/util-profiling.c +++ b/src/util-profiling.c @@ -679,7 +679,7 @@ void SCProfilingDumpPacketStats(void) total = 0; for (m = 0; m < LOGGER_SIZE; m++) { int p; - for (p = 0; p < 257; p++) { + for (p = 0; p < 256; p++) { SCProfilePacketData *pd = &packet_profile_log_data4[m][p]; total += pd->tot; pd = &packet_profile_log_data6[m][p]; @@ -693,7 +693,7 @@ void SCProfilingDumpPacketStats(void) "------------------------", "------", "-----", "----------", "------------", "------------", "-----------", "-----------"); for (m = 0; m < LOGGER_SIZE; m++) { int p; - for (p = 0; p < 257; p++) { + for (p = 0; p < 256; p++) { SCProfilePacketData *pd = &packet_profile_log_data4[m][p]; if (pd->cnt == 0) { @@ -710,7 +710,7 @@ void SCProfilingDumpPacketStats(void) } for (m = 0; m < LOGGER_SIZE; m++) { int p; - for (p = 0; p < 257; p++) { + for (p = 0; p < 256; p++) { SCProfilePacketData *pd = &packet_profile_log_data6[m][p]; if (pd->cnt == 0) { -- 2.47.2