diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-14 02:26:34 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-14 02:26:34 +0000 |
commit | 2a68978c564e53cddc90882ee7776a43839dfcff (patch) | |
tree | 7c8432f893e4c43f2d20d022ba8ccdc05752e4e6 /plugins/check_nwstat.c | |
parent | 9e009c4b1128352c6039d25b39213fd480e9b055 (diff) | |
download | monitoring-plugins-2a68978c564e53cddc90882ee7776a43839dfcff.tar.gz |
remove call_getopt and ssprintf
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@191 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_nwstat.c')
-rw-r--r-- | plugins/check_nwstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c index f8fca736..53deef87 100644 --- a/plugins/check_nwstat.c +++ b/plugins/check_nwstat.c @@ -296,7 +296,7 @@ int main(int argc, char **argv){ result=STATE_CRITICAL; else if(check_warning_value==TRUE && lru_time <= warning_value) result=STATE_WARNING; - sprintf(&output_message,"LRU sitting time = %lu minutes",lru_time); + asprintf(&output_message,"LRU sitting time = %lu minutes",lru_time); /* check KB free space on volume */ @@ -590,7 +590,7 @@ int main(int argc, char **argv){ max_service_processes=atoi(recv_buffer); - sprintf(&send_buffer,"S21\r\n"); + asprintf(&send_buffer,"S21\r\n"); result=process_tcp_request(server_address,server_port,send_buffer,recv_buffer,sizeof(recv_buffer)); if(result!=STATE_OK) return result; |