From 6a939fa1bacd90b64a8e09939ee06223330f7567 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Tue, 5 May 2015 14:56:31 +0200 Subject: Fixes segfaults when running via monitoring worker (off-by-one) Grabed from https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198318 --- plugins-root/check_dhcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins-root') diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c index b874c555..5508d5f9 100644 --- a/plugins-root/check_dhcp.c +++ b/plugins-root/check_dhcp.c @@ -1182,7 +1182,7 @@ int call_getopt(int argc, char **argv){ } } - return i; + return i+1; } -- cgit v1.2.3