Make sure argument passed to ctype isn't signed char
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14322 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -504,8 +504,8 @@ clear_descr(struct descr *d)
|
|||||||
static int
|
static int
|
||||||
de_http(char *buf)
|
de_http(char *buf)
|
||||||
{
|
{
|
||||||
char *p, *q;
|
unsigned char *p, *q;
|
||||||
for(p = q = buf; *p; p++, q++) {
|
for(p = q = (unsigned char *)buf; *p; p++, q++) {
|
||||||
if(*p == '%' && isxdigit(p[1]) && isxdigit(p[2])) {
|
if(*p == '%' && isxdigit(p[1]) && isxdigit(p[2])) {
|
||||||
unsigned int x;
|
unsigned int x;
|
||||||
if(sscanf(p + 1, "%2x", &x) != 1)
|
if(sscanf(p + 1, "%2x", &x) != 1)
|
||||||
|
Reference in New Issue
Block a user