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 2038f4a1..a2b76240 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -1022,6 +1022,10 @@ check_http (void) | |||
1022 | microsec_firstbyte = deltime (tv_temp); | 1022 | microsec_firstbyte = deltime (tv_temp); |
1023 | elapsed_time_firstbyte = (double)microsec_firstbyte / 1.0e6; | 1023 | elapsed_time_firstbyte = (double)microsec_firstbyte / 1.0e6; |
1024 | } | 1024 | } |
1025 | while (pos = memchr(buffer, '\0', i)) { | ||
1026 | /* replace nul character with a blank */ | ||
1027 | *pos = ' '; | ||
1028 | } | ||
1025 | buffer[i] = '\0'; | 1029 | buffer[i] = '\0'; |
1026 | xasprintf (&full_page_new, "%s%s", full_page, buffer); | 1030 | xasprintf (&full_page_new, "%s%s", full_page, buffer); |
1027 | free (full_page); | 1031 | free (full_page); |