-/* $OpenBSD: hack.cmd.c,v 1.7 2009/10/27 23:59:25 deraadt Exp $ */
+/* $OpenBSD: hack.cmd.c,v 1.8 2015/10/24 18:26:13 mmcc Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
domove();
return;
}
- if(movecmd(tolower(*cmd))) {
+ if(movecmd(tolower((unsigned char)*cmd))) {
flags.run = 1;
rush:
if(firsttime){
flags.run = 2;
goto rush;
}
- if(*cmd == 'F' && movecmd(tolower(cmd[1]))) {
+ if(*cmd == 'F' && movecmd(tolower((unsigned char)cmd[1]))) {
flags.run = 3;
goto rush;
}
flags.nopick = 1;
goto walk;
}
- if(*cmd == 'M' && movecmd(tolower(cmd[1]))) {
+ if(*cmd == 'M' && movecmd(tolower((unsigned char)cmd[1]))) {
flags.run = 1;
flags.nopick = 1;
goto rush;
-/* $OpenBSD: hack.end.c,v 1.12 2014/03/11 08:05:15 guenther Exp $ */
+/* $OpenBSD: hack.end.c,v 1.13 2015/10/24 18:26:13 mmcc Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
(players[i][0] == '-' &&
players[i][1] == t1->plchar &&
players[i][2] == 0) ||
- (isdigit(players[i][0]) && rank <= atoi(players[i])))
+ (isdigit((unsigned char)players[i][0]) && rank <= atoi(players[i])))
flg++;
}
t1 = t1->tt_next = newttentry();
(players[i][0] == '-' &&
players[i][1] == t1->plchar &&
players[i][2] == 0) ||
- (isdigit(players[i][0]) && rank <= atoi(players[i]))){
+ (isdigit((unsigned char)players[i][0]) && rank <= atoi(players[i]))){
outwithit:
if(outflg)
(void) outentry(rank, t1, 0);