Fix #563: mismatched buffer sizes for memcpy

This commit is contained in:
Michał Janiszewski 2022-07-20 14:52:20 +02:00 committed by Michał Janiszewski
parent 677c6bb907
commit a84a48dc75
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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: