Explorar o código

incorporate comment on my_recv from Russell Scibetti

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@104 f882894a-f735-0410-b71e-b25c423dba1c
Karl DeBisschop %!s(int64=23) %!d(string=hai) anos
pai
achega
b198e9623a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      plugins/check_http.c

+ 1 - 0
plugins/check_http.c

@@ -663,6 +663,7 @@ check_http (void)
 	/* fetch the page */
 	pagesize = (size_t) 0;
 	while ((i = my_recv ()) > 0) {
+		buffer[i] = "\0"; 
 		full_page = strscat (full_page, buffer);
 		pagesize += i;
 	}