blob: 28ac31d084caf6dbca7a735cf1ecee324fd9ac2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- check_nwstat.c.orig Tue Oct 26 15:38:55 2004
+++ check_nwstat.c Tue Oct 26 15:40:36 2004
@@ -178,13 +178,13 @@
if(result!=STATE_OK)
return result;
if(!strcmp(recv_buffer,"-1\n"))
- asprintf(&netware_version,"");
+ netware_version = strdup("");
else {
recv_buffer[strlen(recv_buffer)-1]=0;
asprintf(&netware_version,"NetWare %s: ",recv_buffer);
}
} else
- asprintf(&netware_version,"");
+ netware_version = strdup("");
|