diff options
-rw-r--r-- | plugins/check_http.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index 2ce7e215..60fe4d52 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -1041,6 +1041,10 @@ check_http (void) microsec_firstbyte = deltime (tv_temp); elapsed_time_firstbyte = (double)microsec_firstbyte / 1.0e6; } + while (pos = memchr(buffer, '\0', i)) { + /* replace nul character with a blank */ + *pos = ' '; + } buffer[i] = '\0'; xasprintf (&full_page_new, "%s%s", full_page, buffer); free (full_page); |