X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fcommon%2Fin_sdl.c;h=e5577bea00d5a56f7e5e8cc028b9a3465560e7ea;hp=ed136105009745f783c3ecaf22bc4d1aa15dbb69;hb=239f3754d8e0480f1e32bf414e49dec6e2ea019d;hpb=b07c18e8645a17be916266820ae564e0d320cc1a diff --git a/frontend/common/in_sdl.c b/frontend/common/in_sdl.c index ed136105..e5577bea 100644 --- a/frontend/common/in_sdl.c +++ b/frontend/common/in_sdl.c @@ -157,7 +157,7 @@ static void in_sdl_probe(void) { keybits_t *keystate; - keystate = calloc(SDLK_LAST / KEYBITS_WORD_BITS + 1, 1); + keystate = calloc(SDLK_LAST / KEYBITS_WORD_BITS + 1, sizeof(keybits_t)); if (keystate == NULL) { fprintf(stderr, "in_sdl: OOM\n"); return;