summaryrefslogtreecommitdiffstats
path: root/web/attachments/163283-nagios-plugins-1.4.1-check_snmp_c_fix_alt.patch
blob: 47d51fcf5dd7c4ae5f8beb38c384915366f371e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- nagios-plugins-1.4.2/plugins/check_snmp.c.orig      Wed Jun 
1 15:41:
01 2005
+++ nagios-plugins-1.4.2/plugins/check_snmp.c   Thu Jan 12
18:22:
47 2006
@@ -337,10 +337,17 @@
                        asprintf (&outbuff, "%s %s", outbuff, unitv[i]);
 
                i++;
-
+#if 0
                char *str[MAX_INPUT_BUFFER];
                asprintf(str, "=%s%s;;;; ", show, type ? type : "");
                strcat(perfstr, *str);
+#else
+               strcat(perfstr, "=");
+               strcat(perfstr, show);
+               if (type)
+                       strcat(perfstr, type);
+               strcat(perfstr, ";;;; ");
+#endif
 
        }       /* end while (ptr) */