summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 88f89c43..8cf1aa67 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -152,7 +152,6 @@ main (int argc, char **argv)
152 char *p2 = NULL; 152 char *p2 = NULL;
153 char *show = NULL; 153 char *show = NULL;
154 char type[8]; 154 char type[8];
155 char *str[MAX_INPUT_BUFFER];
156 155
157 setlocale (LC_ALL, ""); 156 setlocale (LC_ALL, "");
158 bindtextdomain (PACKAGE, LOCALEDIR); 157 bindtextdomain (PACKAGE, LOCALEDIR);
@@ -349,8 +348,11 @@ main (int argc, char **argv)
349 348
350 i++; 349 i++;
351 350
352 asprintf(str, "=%s%s;;;; ", show, type ? type : ""); 351 strcat(perfstr, "=");
353 strcat(perfstr, *str); 352 strcat(perfstr, show);
353 if (type)
354 strcat(perfstr, type);
355 strcat(perfstr, " ");
354 356
355 } /* end while (ptr) */ 357 } /* end while (ptr) */
356 358