debian #170531 - sign extension in gnome input
Internals of gnome_yn_function should treat key inputs as 'int' until returning them, to avoid truncating and not sign extending as needed on platforms where char is unsigned.
This commit is contained in:
@@ -1021,7 +1021,7 @@ char yn_function(const char *ques, const char *choices, char default)
|
||||
char gnome_yn_function(const char *question, const char *choices,
|
||||
CHAR_P def)
|
||||
{
|
||||
char ch;
|
||||
int ch;
|
||||
int result=-1;
|
||||
char message[BUFSZ];
|
||||
char yn_esc_map='\033';
|
||||
|
||||
Reference in New Issue
Block a user