From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/222809-check_ntp.startofvalue.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 web/attachments/222809-check_ntp.startofvalue.patch (limited to 'web/attachments/222809-check_ntp.startofvalue.patch') diff --git a/web/attachments/222809-check_ntp.startofvalue.patch b/web/attachments/222809-check_ntp.startofvalue.patch new file mode 100644 index 0000000..998102b --- /dev/null +++ b/web/attachments/222809-check_ntp.startofvalue.patch @@ -0,0 +1,17 @@ +Index: plugins/check_ntp.c +=================================================================== +RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ntp.c,v +retrieving revision 1.13 +diff -u -r1.13 check_ntp.c +--- plugins/check_ntp.c 28 Jan 2007 21:46:40 -0000 1.13 ++++ plugins/check_ntp.c 29 Mar 2007 11:33:26 -0000 +@@ -590,7 +590,8 @@ + if(verbose) { + printf("parsing jitter from peer %.2x: ", peers[i].assoc); + } +- startofvalue = strchr(req.data, '=') + 1; ++ startofvalue = strchr(req.data, '='); ++ if(startofvalue != NULL) startofvalue++; + if(startofvalue != NULL) { + jitter = strtod(startofvalue, &nptr); + } -- cgit v1.2.3-74-g34f1