diff options
author | Luca Deri <deri@ntop.org> | 2019-12-09 15:28:44 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-12-09 15:28:44 +0100 |
commit | 65d526d8f6ae75f8d1a3f5c8dd19bf40ec03f320 (patch) | |
tree | d6fa58447b77245af6f616f2026acceff6ecd08b /src/lib/ndpi_utils.c | |
parent | 56eeb965bf82fd9fbcd7a2b340cbf9473abaab20 (diff) |
Code cleanup
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r-- | src/lib/ndpi_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index 3637561d0..57d128817 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -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; |