make sure argument to is* functions are unsigned
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12037 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -322,7 +322,7 @@ main(int argc, char **argv)
|
|||||||
if(sp)
|
if(sp)
|
||||||
port = sp->s_port;
|
port = sp->s_port;
|
||||||
else
|
else
|
||||||
if(isdigit(port_string[0]))
|
if(isdigit((unsigned char)port_string[0]))
|
||||||
port = htons(atoi(port_string));
|
port = htons(atoi(port_string));
|
||||||
else
|
else
|
||||||
warnx("bad value for -p");
|
warnx("bad value for -p");
|
||||||
@@ -1103,9 +1103,9 @@ done:
|
|||||||
int
|
int
|
||||||
filename_check(char *filename)
|
filename_check(char *filename)
|
||||||
{
|
{
|
||||||
char *p;
|
unsigned char *p;
|
||||||
|
|
||||||
p = strrchr(filename, '/');
|
p = (unsigned char *)strrchr(filename, '/');
|
||||||
if(p)
|
if(p)
|
||||||
filename = p + 1;
|
filename = p + 1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user