summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3834b32)
raw | patch | inline | side by side (parent: 3834b32)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Thu, 19 Oct 2006 19:25:52 +0000 (19:25 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Thu, 19 Oct 2006 19:25:52 +0000 (19:25 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1504 f882894a-f735-0410-b71e-b25c423dba1c
THANKS.in | patch | blob | history | |
plugins/check_snmp.c | patch | blob | history |
diff --git a/THANKS.in b/THANKS.in
index ad08a77773b5397828497b30c238ab3c54aca1f0..c7e44df3b3d7f87d889854161e6ae1958f716f24 100644 (file)
--- a/THANKS.in
+++ b/THANKS.in
O'Shaughnessy Evans
Aravind Gottipati
Kyle Tucker
+Craig Orsinger
+Robby Giffin
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 88f89c43a31a13b61d2b38ce094d1e2f89671283..8cf1aa67aaeff6c44cec7af72e82ec9126e4bd67 100644 (file)
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
char *p2 = NULL;
char *show = NULL;
char type[8];
- char *str[MAX_INPUT_BUFFER];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
i++;
- asprintf(str, "=%s%s;;;; ", show, type ? type : "");
- strcat(perfstr, *str);
+ strcat(perfstr, "=");
+ strcat(perfstr, show);
+ if (type)
+ strcat(perfstr, type);
+ strcat(perfstr, " ");
} /* end while (ptr) */