]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
fix lint warning
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 6 Feb 2018 11:16:23 +0000 (11:16 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 6 Feb 2018 11:16:23 +0000 (11:16 +0000)
git-svn-id: file:///svn/unbound/trunk@4513 be551aaa-1e26-0410-a405-d3ace91eadb9

services/authzone.c

index 92f8ad0487b63c129ebacffe340979ce2ec62182..8a2fa45fc6a00e47e885f3d5a1d27c845cf51dde 100644 (file)
@@ -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);