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";
|
||||
const char *p;
|
||||
|
||||
p = strchr (hexdigits, tolower((int)c));
|
||||
p = strchr (hexdigits, tolower((unsigned char)c));
|
||||
if (p == NULL)
|
||||
return -1;
|
||||
else
|
||||
|
Reference in New Issue
Block a user