mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-05 19:15:12 +00:00
Code cleanup
This commit is contained in:
parent
56eeb965bf
commit
65d526d8f6
7 changed files with 32 additions and 30 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue