From 239f3754d8e0480f1e32bf414e49dec6e2ea019d Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 6 Jul 2012 00:20:29 +0300 Subject: [PATCH] in_sdl: fix wrong alloc --- frontend/common/in_sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5