Fix #563: mismatched buffer sizes for memcpy
This commit is contained in:
parent
677c6bb907
commit
a84a48dc75
|
@ -1961,7 +1961,7 @@ static void Edit_Joystick_Controls(GSimpleAction *action, GVariant *parameter, g
|
|||
|
||||
switch (gtk_dialog_run(GTK_DIALOG(ecDialog))) {
|
||||
case GTK_RESPONSE_OK:
|
||||
memcpy(&joypad_cfg, &Keypad_Temp, sizeof(keyboard_cfg));
|
||||
memcpy(&joypad_cfg, &Keypad_Temp, sizeof(joypad_cfg));
|
||||
desmume_config_update_joykeys(keyfile);
|
||||
break;
|
||||
case GTK_RESPONSE_CANCEL:
|
||||
|
|
|
@ -2365,7 +2365,7 @@ static void Edit_Joystick_Controls()
|
|||
|
||||
switch (gtk_dialog_run(GTK_DIALOG(ecDialog))) {
|
||||
case GTK_RESPONSE_OK:
|
||||
memcpy(&joypad_cfg, &Keypad_Temp, sizeof(keyboard_cfg));
|
||||
memcpy(&joypad_cfg, &Keypad_Temp, sizeof(joypad_cfg));
|
||||
desmume_config_update_joykeys(keyfile);
|
||||
break;
|
||||
case GTK_RESPONSE_CANCEL:
|
||||
|
|
Loading…
Reference in New Issue