Code cleanup

This commit is contained in:
Luca Deri 2019-12-09 15:28:44 +01:00
parent 56eeb965bf
commit 65d526d8f6
7 changed files with 32 additions and 30 deletions

View file

@ -1134,7 +1134,7 @@ static int ndpi_url_decode(const char *s, char *out) {
if(c == '+') c = ' ';
else if(c == '%' && (!ishex(*s++)||
!ishex(*s++)||
!sscanf(s - 2, "%2x", &c)))
!sscanf(s - 2, "%2x", (unsigned int*)&c)))
return(-1);
if(out) *o = c;