summaryrefslogtreecommitdiffstats
path: root/web/attachments/163283-nagios-plugins-1.4.1-check_snmp_c_fix_alt.patch
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/163283-nagios-plugins-1.4.1-check_snmp_c_fix_alt.patch')
-rw-r--r--web/attachments/163283-nagios-plugins-1.4.1-check_snmp_c_fix_alt.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/web/attachments/163283-nagios-plugins-1.4.1-check_snmp_c_fix_alt.patch b/web/attachments/163283-nagios-plugins-1.4.1-check_snmp_c_fix_alt.patch
new file mode 100644
index 0000000..47d51fc
--- /dev/null
+++ b/web/attachments/163283-nagios-plugins-1.4.1-check_snmp_c_fix_alt.patch
@@ -0,0 +1,25 @@
1--- nagios-plugins-1.4.2/plugins/check_snmp.c.orig Wed Jun
21 15:41:
301 2005
4+++ nagios-plugins-1.4.2/plugins/check_snmp.c Thu Jan 12
518:22:
647 2006
7@@ -337,10 +337,17 @@
8 asprintf (&outbuff, "%s %s", outbuff, unitv[i]);
9
10 i++;
11-
12+#if 0
13 char *str[MAX_INPUT_BUFFER];
14 asprintf(str, "=%s%s;;;; ", show, type ? type : "");
15 strcat(perfstr, *str);
16+#else
17+ strcat(perfstr, "=");
18+ strcat(perfstr, show);
19+ if (type)
20+ strcat(perfstr, type);
21+ strcat(perfstr, ";;;; ");
22+#endif
23
24 } /* end while (ptr) */
25