diff options
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.patch | 18 |
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 | |||