fix compiler error on 32bit arches
This commit is contained in:
parent
cd875f4ab9
commit
7bc27a521e
4
Url.cpp
4
Url.cpp
@ -185,7 +185,7 @@ void Url::set ( char *t , int32_t tlen , bool addWWW , bool stripSessionId ,
|
||||
log(LOG_DEBUG, "build: attempting to decode unicode url %s pos at %"INT32, t, nonAsciiPos);
|
||||
if(tmp) t[tlen] = tmp;
|
||||
char encoded [ MAX_URL_LEN ];
|
||||
uint64_t encodedLen = MAX_URL_LEN;
|
||||
size_t encodedLen = MAX_URL_LEN;
|
||||
char *encodedDomStart = encoded;
|
||||
char *p = t;
|
||||
char *pend = t+tlen;
|
||||
@ -2602,7 +2602,7 @@ char* Url::getDisplayUrl(char* url, SafeBuf* sb) {
|
||||
|
||||
char* encodedStart = found + 4;
|
||||
uint32_t decoded [ MAX_URL_LEN];
|
||||
uint64_t decodedLen = MAX_URL_LEN - 1 ;
|
||||
size_t decodedLen = MAX_URL_LEN - 1 ;
|
||||
char* labelEnd = encodedStart;
|
||||
while( labelEnd < domEnd && *labelEnd != '/' && *labelEnd != '.' )
|
||||
labelEnd++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user