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/40524-check_by_ssh.diff | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 web/attachments/40524-check_by_ssh.diff (limited to 'web/attachments/40524-check_by_ssh.diff') diff --git a/web/attachments/40524-check_by_ssh.diff b/web/attachments/40524-check_by_ssh.diff new file mode 100644 index 0000000..7ed93fe --- /dev/null +++ b/web/attachments/40524-check_by_ssh.diff @@ -0,0 +1,19 @@ +*** check_by_ssh.c.orig Thu Jan 23 23:16:08 2003 +--- check_by_ssh.c Thu Jan 23 23:36:15 2003 +*************** +*** 256,262 **** + while (p2 = index (p1, ':')) { + *p2 = '\0'; + asprintf (&service[services-1], "%s", p1); +! service = realloc (service, ++services); + p1 = p2 + 1; + } + asprintf (&service[services-1], "%s", p1); +--- 256,262 ---- + while (p2 = index (p1, ':')) { + *p2 = '\0'; + asprintf (&service[services-1], "%s", p1); +! service = realloc (service, sizeof(char *) * ++services); + p1 = p2 + 1; + } + asprintf (&service[services-1], "%s", p1); -- cgit v1.2.3-74-g34f1