summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f71de78)
raw | patch | inline | side by side (parent: f71de78)
author | Holger Weiss <hweiss@users.sourceforge.net> | |
Fri, 1 Jun 2007 23:08:24 +0000 (23:08 +0000) | ||
committer | Holger Weiss <hweiss@users.sourceforge.net> | |
Fri, 1 Jun 2007 23:08:24 +0000 (23:08 +0000) |
for nul-termination (Aravind Gottipati - 1729692)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1727 f882894a-f735-0410-b71e-b25c423dba1c
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1727 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_http.c | patch | blob | history |
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 5e33ec86113e485a55a24b1750e3ef6aea799bab..86e18dece070bf9fa95aabfc9ceaa6527a13d11a 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
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"));