summaryrefslogtreecommitdiffstats
path: root/web/attachments/151032-nagios-plugins-1.4.1-check_snmp_c_fix.patch
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/151032-nagios-plugins-1.4.1-check_snmp_c_fix.patch
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/151032-nagios-plugins-1.4.1-check_snmp_c_fix.patch')
-rw-r--r--web/attachments/151032-nagios-plugins-1.4.1-check_snmp_c_fix.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/web/attachments/151032-nagios-plugins-1.4.1-check_snmp_c_fix.patch b/web/attachments/151032-nagios-plugins-1.4.1-check_snmp_c_fix.patch
new file mode 100644
index 0000000..babe7fc
--- /dev/null
+++ b/web/attachments/151032-nagios-plugins-1.4.1-check_snmp_c_fix.patch
@@ -0,0 +1,18 @@
1--- plugins/check_snmp.c.orig Sat Oct 1 13:45:45 2005
2+++ plugins/check_snmp.c Sat Oct 1 13:46:15 2005
3@@ -206,6 +206,7 @@
4 strcat(perfstr, "| ");
5 while (ptr) {
6 char *foo;
7+ char *str[MAX_INPUT_BUFFER];
8
9 foo = strstr (ptr, delimiter);
10 strncat(perfstr, ptr, foo-ptr);
11@@ -338,7 +339,6 @@
12
13 i++;
14
15- char *str[MAX_INPUT_BUFFER];
16 asprintf(str, "=%s%s;;;; ", show, type ? type : "");
17 strcat(perfstr, *str);
18