summaryrefslogtreecommitdiff
path: root/net-mgmt/nagios-plugins/files/patch-plugins__check_snmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/nagios-plugins/files/patch-plugins__check_snmp.c')
-rw-r--r--net-mgmt/nagios-plugins/files/patch-plugins__check_snmp.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/net-mgmt/nagios-plugins/files/patch-plugins__check_snmp.c b/net-mgmt/nagios-plugins/files/patch-plugins__check_snmp.c
new file mode 100644
index 000000000000..542204fb8a9d
--- /dev/null
+++ b/net-mgmt/nagios-plugins/files/patch-plugins__check_snmp.c
@@ -0,0 +1,18 @@
+--- plugins/check_snmp.c.orig Tue Nov 1 06:33:19 2005
++++ plugins/check_snmp.c Fri May 12 23:29:24 2006
+@@ -206,6 +206,7 @@
+ strcat(perfstr, "| ");
+ while (ptr) {
+ char *foo;
++ char *str[MAX_INPUT_BUFFER];
+
+ foo = strstr (ptr, delimiter);
+ strncat(perfstr, ptr, foo-ptr);
+@@ -338,7 +339,6 @@
+
+ i++;
+
+- char *str[MAX_INPUT_BUFFER];
+ asprintf(str, "=%s%s;;;; ", show, type ? type : "");
+ strcat(perfstr, *str);
+