diff options
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r-- | plugins/check_http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index 5e33ec86..86e18dec 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -1101,7 +1101,7 @@ redir (char *pos, char *status_line) pos += i; pos += strspn (pos, " \t\r\n"); - url = realloc (url, strcspn (pos, "\r\n")); + url = realloc (url, strcspn (pos, "\r\n") + 1); if (url == NULL) die (STATE_UNKNOWN, _("HTTP UNKNOWN - could not allocate url\n")); |