shithub: choc

Download patch

ref: 14f88b78ee79e66b105a4e9bba7bf165f889156c
parent: 7dbd6b77f3ae89741a54f9eb96fdde44a8979b7b
author: sageman_ <sageman@anomine.net>
date: Mon May 30 14:33:05 EDT 2022

Fix out of bounds bug in the keyboard bind handling of setup

--- a/src/setup/keyboard.c
+++ b/src/setup/keyboard.c
@@ -67,7 +67,7 @@
                             &key_menu_screenshot,
                             &key_message_refresh, &key_multi_msg,
                             &key_multi_msgplayer[0], &key_multi_msgplayer[1],
-                            &key_multi_msgplayer[2], &key_multi_msgplayer[3] };
+                            &key_multi_msgplayer[2], &key_multi_msgplayer[3], NULL };
 
 static int *map_keys[] = { &key_map_north, &key_map_south, &key_map_east,
                            &key_map_west, &key_map_zoomin, &key_map_zoomout,