From 2a68978c564e53cddc90882ee7776a43839dfcff Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Thu, 14 Nov 2002 02:26:34 +0000 Subject: remove call_getopt and ssprintf git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@191 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_nwstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/check_nwstat.c') 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; -- cgit v1.2.3