mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-09 08:42:17 -04:00
Removed asprintf for perf data (Craig Orsinger, Robby Giffin - 1310495)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1504 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
3834b3262a
commit
92585ee4a5
2 changed files with 7 additions and 3 deletions
|
|
@ -195,3 +195,5 @@ Andreas Behal
|
|||
O'Shaughnessy Evans
|
||||
Aravind Gottipati
|
||||
Kyle Tucker
|
||||
Craig Orsinger
|
||||
Robby Giffin
|
||||
|
|
|
|||
|
|
@ -152,7 +152,6 @@ main (int argc, char **argv)
|
|||
char *p2 = NULL;
|
||||
char *show = NULL;
|
||||
char type[8];
|
||||
char *str[MAX_INPUT_BUFFER];
|
||||
|
||||
setlocale (LC_ALL, "");
|
||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||
|
|
@ -349,8 +348,11 @@ main (int argc, char **argv)
|
|||
|
||||
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) */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue