ports/audio/herrie/patches/patch-src_gui_input_c

19 lines
427 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
The return value of getch() must be stored in an int to handle KEY_*
values.
Index: src/gui_input.c
--- src/gui_input.c.orig
+++ src/gui_input.c
@@ -601,9 +601,9 @@ gui_input_loop(void)
int
gui_input_askyesno(const char *question)
{
- char *msg, input;
+ char *msg;
const char *yes, *no;
- int ret;
+ int input, ret;
/* Skip the question if the user really wants so */
if (!config_getopt_bool("gui.input.confirm"))