diff options
-rw-r--r-- | plugins-root/check_icmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"; | |||
43 | const char *email = "devel@monitoring-plugins.org"; | 43 | const char *email = "devel@monitoring-plugins.org"; |
44 | 44 | ||
45 | /** Monitoring Plugins basic includes */ | 45 | /** Monitoring Plugins basic includes */ |
46 | #include "common.h" | 46 | #include "../plugins/common.h" |
47 | #include "netutils.h" | 47 | #include "netutils.h" |
48 | #include "utils.h" | 48 | #include "utils.h" |
49 | 49 | ||
@@ -1851,10 +1851,10 @@ get_threshold2(char *str, size_t length, threshold *warn, threshold *crit, thres | |||
1851 | char *p = NULL; | 1851 | char *p = NULL; |
1852 | bool first_iteration = true; | 1852 | bool first_iteration = true; |
1853 | 1853 | ||
1854 | // pointer magic slims code by 10 lines. i is bof-stop on stupid libc's | ||
1855 | // p points to the last char in str | 1854 | // p points to the last char in str |
1856 | p = &str[length - 1]; | 1855 | p = &str[length - 1]; |
1857 | 1856 | ||
1857 | // first_iteration is bof-stop on stupid libc's | ||
1858 | while(p != &str[0]) { | 1858 | while(p != &str[0]) { |
1859 | if( (*p == 'm') || (*p == '%') ) { | 1859 | if( (*p == 'm') || (*p == '%') ) { |
1860 | *p = '\0'; | 1860 | *p = '\0'; |