diff options
author | Matthew Kent <mattkent@users.sourceforge.net> | 2004-11-24 04:35:40 +0000 |
---|---|---|
committer | Matthew Kent <mattkent@users.sourceforge.net> | 2004-11-24 04:35:40 +0000 |
commit | c4000f5d6c910828e26aca1566d8e1587fece17d (patch) | |
tree | f045eca8b30315d145cc68ac48fbd2a6f522ab15 /plugins | |
parent | a6b60372352dab2ed7c2e84e3f92648611b7df12 (diff) | |
download | monitoring-plugins-c4000f5d6c910828e26aca1566d8e1587fece17d.tar.gz |
Attempting to fix a reported segfault (1055054)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@932 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-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 765a4fb6..46bc7e90 100644 --- a/plugins/check_nwstat.c +++ b/plugins/check_nwstat.c | |||
@@ -141,13 +141,13 @@ main(int argc, char **argv) { | |||
141 | if (result!=STATE_OK) | 141 | if (result!=STATE_OK) |
142 | return result; | 142 | return result; |
143 | if (!strcmp(recv_buffer,"-1\n")) | 143 | if (!strcmp(recv_buffer,"-1\n")) |
144 | asprintf (&netware_version, "%s", ""); | 144 | netware_version = strdup(""); |
145 | else { | 145 | else { |
146 | recv_buffer[strlen(recv_buffer)-1]=0; | 146 | recv_buffer[strlen(recv_buffer)-1]=0; |
147 | asprintf (&netware_version,_("NetWare %s: "),recv_buffer); | 147 | asprintf (&netware_version,_("NetWare %s: "),recv_buffer); |
148 | } | 148 | } |
149 | } else | 149 | } else |
150 | asprintf (&netware_version, "%s", ""); | 150 | netware_version = strdup(""); |
151 | 151 | ||
152 | 152 | ||
153 | /* check CPU load */ | 153 | /* check CPU load */ |