summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/reqs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reqs.c b/src/reqs.c
index 8250872..7bd489c 100644
--- a/src/reqs.c
+++ b/src/reqs.c
@@ -258,7 +258,7 @@ extract_http_url (const char *url, struct request_s *request)
if (p != NULL)
{
len = p - url;
- request->host = safemalloc (len + 1);
+ request->host = (char *)safemalloc (len + 1);
memcpy (request->host, url, len);
request->host[len] = '\0';
request->path = safestrdup (p);