cast argument to tolower to unsigned char,
from Christian Biere <christianbiere@gmx.de> via NetBSD git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12010 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -587,7 +587,7 @@ hex2n (char c)
|
|||||||
static char hexdigits[] = "0123456789abcdef";
|
static char hexdigits[] = "0123456789abcdef";
|
||||||
const char *p;
|
const char *p;
|
||||||
|
|
||||||
p = strchr (hexdigits, tolower((int)c));
|
p = strchr (hexdigits, tolower((unsigned char)c));
|
||||||
if (p == NULL)
|
if (p == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user