Ver código fonte

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 24 anos atrás
pai
commit
b198e9623a
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      plugins/check_http.c

+ 1 - 0
plugins/check_http.c

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