summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 5e33ec8..86e18de 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -1101,7 +1101,7 @@ redir (char *pos, char *status_line)
1101 pos += i; 1101 pos += i;
1102 pos += strspn (pos, " \t\r\n"); 1102 pos += strspn (pos, " \t\r\n");
1103 1103
1104 url = realloc (url, strcspn (pos, "\r\n")); 1104 url = realloc (url, strcspn (pos, "\r\n") + 1);
1105 if (url == NULL) 1105 if (url == NULL)
1106 die (STATE_UNKNOWN, _("HTTP UNKNOWN - could not allocate url\n")); 1106 die (STATE_UNKNOWN, _("HTTP UNKNOWN - could not allocate url\n"));
1107 1107