notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
in_sdl: fix wrong alloc
[pcsx_rearmed.git]
/
frontend
/
common
/
in_sdl.c
diff --git
a/frontend/common/in_sdl.c
b/frontend/common/in_sdl.c
index
27c183b
..
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;
{
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;
if (keystate == NULL) {
fprintf(stderr, "in_sdl: OOM\n");
return;
@@
-302,8
+302,8
@@
static const in_drv_t in_sdl_drv = {
.menu_translate = in_sdl_menu_translate,
};
.menu_translate = in_sdl_menu_translate,
};
-void in_sdl_init(
void
)
+void in_sdl_init(
const struct in_default_bind *defbinds
)
{
{
- in_register_driver(&in_sdl_drv);
+ in_register_driver(&in_sdl_drv
, defbinds
);
}
}