From: notaz Date: Thu, 5 Jul 2012 21:20:29 +0000 (+0300) Subject: in_sdl: fix wrong alloc X-Git-Tag: r15~42 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=239f3754d8e0480f1e32bf414e49dec6e2ea019d;p=pcsx_rearmed.git in_sdl: fix wrong alloc --- 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;