X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=frontend%2Fcommon%2Fin_sdl.c;fp=frontend%2Fcommon%2Fin_sdl.c;h=e5577bea00d5a56f7e5e8cc028b9a3465560e7ea;hb=239f3754d8e0480f1e32bf414e49dec6e2ea019d;hp=ed136105009745f783c3ecaf22bc4d1aa15dbb69;hpb=d1c75d1e58c4718c9407ad50798cfc24900487de;p=pcsx_rearmed.git 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;