diff options
author | notaz | 2012-07-06 00:20:29 +0300 |
---|---|---|
committer | notaz | 2012-07-06 20:58:25 +0300 |
commit | 239f3754d8e0480f1e32bf414e49dec6e2ea019d (patch) | |
tree | 032ba3bd4a1c08c35cbca3b129a09906524690c3 /frontend/common | |
parent | d1c75d1e58c4718c9407ad50798cfc24900487de (diff) | |
download | pcsx_rearmed-239f3754d8e0480f1e32bf414e49dec6e2ea019d.tar.gz pcsx_rearmed-239f3754d8e0480f1e32bf414e49dec6e2ea019d.tar.bz2 pcsx_rearmed-239f3754d8e0480f1e32bf414e49dec6e2ea019d.zip |
in_sdl: fix wrong alloc
Diffstat (limited to 'frontend/common')
-rw-r--r-- | frontend/common/in_sdl.c | 2 |
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; |