mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Fix some sizeof snafus.
I'd failed to notice these earlier.
This commit is contained in:
parent
bc2fa38468
commit
8de4db0e2d
1 changed files with 1 additions and 1 deletions
|
@ -346,7 +346,7 @@ in_joy_button_add_f (int ax, int index)
|
|||
return;
|
||||
|
||||
n = joy_axes[ax].num_buttons++;
|
||||
size = n * sizeof (joy_axes[ax].axis_buttons);
|
||||
size = joy_axes[ax].num_buttons * sizeof (struct joy_axis_button);
|
||||
joy_axes[ax].axis_buttons = realloc (joy_axes[ax].axis_buttons, size);
|
||||
joy_axes[ax].axis_buttons[n].key = keynum;
|
||||
joy_axes[ax].axis_buttons[n].threshold = threshold;
|
||||
|
|
Loading…
Reference in a new issue