X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/3ff276f2cd88e6f3a6fe08f95f6147abbe3fcfd4..0e1a6ac4db9028730c9151b56aec055b4e52278d:/netslide.c diff --git a/netslide.c b/netslide.c index 12fabd7..206535b 100644 --- a/netslide.c +++ b/netslide.c @@ -213,16 +213,16 @@ static void decode_params(game_params *ret, char const *string) ret->movetarget = 0; ret->width = atoi(p); - while (*p && isdigit(*p)) p++; + while (*p && isdigit((unsigned char)*p)) p++; if (*p == 'x') { p++; ret->height = atoi(p); - while (*p && isdigit(*p)) p++; + while (*p && isdigit((unsigned char)*p)) p++; if ( (ret->wrapping = (*p == 'w')) != 0 ) p++; if (*p == 'b') { ret->barrier_probability = atof(++p); - while (*p && (isdigit(*p) || *p == '.')) p++; + while (*p && (isdigit((unsigned char)*p) || *p == '.')) p++; } if (*p == 'm') { ret->movetarget = atoi(++p); @@ -1776,7 +1776,7 @@ static int game_wants_statusbar(void) return TRUE; } -static int game_timing_state(game_state *state) +static int game_timing_state(game_state *state, game_ui *ui) { return FALSE; }