From 18aed94e0c71b386758b6f24229eb29e659e075e Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Tue, 6 Feb 2018 11:16:23 +0000 Subject: [PATCH] fix lint warning git-svn-id: file:///svn/unbound/trunk@4513 be551aaa-1e26-0410-a405-d3ace91eadb9 --- services/authzone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/authzone.c b/services/authzone.c index 92f8ad048..8a2fa45fc 100644 --- a/services/authzone.c +++ b/services/authzone.c @@ -5438,7 +5438,7 @@ parse_url(char* url, char** host, char** file, int* port, int* ssl) char* end = strchr(p, ']'); p++; /* skip over [ */ if(end) { - *host = dup_prefix(p, (end-p)); + *host = dup_prefix(p, (size_t)(end-p)); if(!*host) return 0; p = end+1; /* skip over ] */ } else { @@ -5449,7 +5449,7 @@ parse_url(char* url, char** host, char** file, int* port, int* ssl) } else { char* end = str_find_first_of_chars(p, ':', '/'); if(end) { - *host = dup_prefix(p, (end-p)); + *host = dup_prefix(p, (size_t)(end-p)); if(!*host) return 0; } else { *host = dup_all(p); -- 2.47.3