aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/check_http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 733388b8..b3b2263d 100644
--- a/plugins/check_http.c
+++ b/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;
}