notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1c75d1
)
in_sdl: fix wrong alloc
author
notaz
<notasas@gmail.com>
Thu, 5 Jul 2012 21:20:29 +0000
(
00:20
+0300)
committer
notaz
<notasas@gmail.com>
Fri, 6 Jul 2012 17:58:25 +0000
(20:58 +0300)
frontend/common/in_sdl.c
patch
|
blob
|
blame
|
history
diff --git
a/frontend/common/in_sdl.c
b/frontend/common/in_sdl.c
index
ed13610
..
e5577be
100644
(file)
--- 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;