aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontend/common/in_sdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/common/in_sdl.c b/frontend/common/in_sdl.c
index ed13610..e5577be 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;