(de_http): sscanf takes a char *, not unsigned ditto, cast approriately

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15683 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-07-20 08:40:27 +00:00
parent cb66375606
commit f78e6abe5c

View File

@@ -491,7 +491,7 @@ de_http(char *buf)
for(p = q = (unsigned char *)buf; *p; p++, q++) {
if(*p == '%' && isxdigit(p[1]) && isxdigit(p[2])) {
unsigned int x;
if(sscanf(p + 1, "%2x", &x) != 1)
if(sscanf((char *)p + 1, "%2x", &x) != 1)
return -1;
*q = x;
p += 2;