mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-23 15:12:55 -05:00
fix lint warning
git-svn-id: file:///svn/unbound/trunk@4513 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
3b87862c8a
commit
18aed94e0c
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue