summaryrefslogtreecommitdiffstats
path: root/web/attachments/151032-nagios-plugins-1.4.1-check_snmp_c_fix.patch
blob: babe7fca153529c7300a93f544bec39825199e5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- plugins/check_snmp.c.orig	Sat Oct  1 13:45:45 2005
+++ plugins/check_snmp.c	Sat Oct  1 13:46:15 2005
@@ -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);