Add input validation to SDL_GetKeyFromScancode; fix compiler warning in testautomation driver on Linux; update keyboard test suite

This commit is contained in:
Andreas Schiffler 2013-01-13 22:55:26 -08:00
parent 175511b1a0
commit 3bc9dbe16c
3 changed files with 47 additions and 4 deletions

View file

@ -61,7 +61,7 @@ main(int argc, char *argv[])
}
else if (SDL_strcasecmp(argv[i], "--execKey") == 0) {
if (argv[i + 1]) {
SDL_sscanf(argv[i + 1], "%llu", &userExecKey);
SDL_sscanf(argv[i + 1], "%llu", (long long unsigned int *)&userExecKey);
consumed = 2;
}
}