Fix some char index issues.

This commit is contained in:
Bill Currie 2012-08-18 11:02:52 +09:00
parent 7928274b6e
commit 62face768f
2 changed files with 2 additions and 2 deletions

View file

@ -556,7 +556,7 @@ Cmd_StuffCmds (cbuf_t *cbuf)
for (j = i; for (j = i;
(com_cmdline[j] (com_cmdline[j]
&& !((j == 0 || isspace(com_cmdline[j - 1])) && !((j == 0 || isspace((byte) com_cmdline[j - 1]))
&& ((com_cmdline[j] == '+') && ((com_cmdline[j] == '+')
|| (com_cmdline[j] == '-')))); || (com_cmdline[j] == '-'))));
j++) j++)

View file

@ -481,7 +481,7 @@ PL_ParseData (pldata_t *pl, int *len)
while (pl->pos < pl->end) { while (pl->pos < pl->end) {
c = pl->ptr[pl->pos++]; c = pl->ptr[pl->pos++];
if (isxdigit (c)) { if (isxdigit ((byte) c)) {
nibbles++; nibbles++;
continue; continue;
} }