From d54588eaf0fc1ec35cfac988dbb2764069fbc909 Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Fri, 6 Oct 2023 15:19:33 +0200 Subject: Update comment --- plugins-root/check_icmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins-root') diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c index 79b93571..541e7955 100644 --- a/plugins-root/check_icmp.c +++ b/plugins-root/check_icmp.c @@ -43,7 +43,7 @@ const char *copyright = "2005-2008"; const char *email = "devel@monitoring-plugins.org"; /** Monitoring Plugins basic includes */ -#include "common.h" +#include "../plugins/common.h" #include "netutils.h" #include "utils.h" @@ -1851,10 +1851,10 @@ get_threshold2(char *str, size_t length, threshold *warn, threshold *crit, thres char *p = NULL; bool first_iteration = true; - // pointer magic slims code by 10 lines. i is bof-stop on stupid libc's // p points to the last char in str p = &str[length - 1]; + // first_iteration is bof-stop on stupid libc's while(p != &str[0]) { if( (*p == 'm') || (*p == '%') ) { *p = '\0'; -- cgit v1.2.3-74-g34f1