[Nagiosplug-checkins] nagiosplug/plugins check_nwstat.c,1.15,1.16
Matthew Kent
mattkent at users.sourceforge.net
Wed Nov 24 12:23:48 CET 2004
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1712
Modified Files:
check_nwstat.c
Log Message:
Attempting to fix a reported segfault (1055054)
Index: check_nwstat.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_nwstat.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- check_nwstat.c 24 Nov 2004 00:46:39 -0000 1.15
+++ check_nwstat.c 24 Nov 2004 04:35:40 -0000 1.16
@@ -141,13 +141,13 @@
if (result!=STATE_OK)
return result;
if (!strcmp(recv_buffer,"-1\n"))
- asprintf (&netware_version, "%s", "");
+ netware_version = strdup("");
else {
recv_buffer[strlen(recv_buffer)-1]=0;
asprintf (&netware_version,_("NetWare %s: "),recv_buffer);
}
} else
- asprintf (&netware_version, "%s", "");
+ netware_version = strdup("");
/* check CPU load */
More information about the Commits
mailing list