patch-1.3.96 linux/scripts/lxdialog/menubox.c

Next file: linux/scripts/lxdialog/util.c
Previous file: linux/net/socket.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.95/linux/scripts/lxdialog/menubox.c linux/scripts/lxdialog/menubox.c
@@ -199,7 +199,7 @@
     while (key != ESC) {
 	key = wgetch(dialog);
 
-	if (isalpha(key)) key = tolower(key);
+	if (key < 256 && isalpha(key)) key = tolower(key);
 
 	if (strchr("ynm", key))
 		i = max_choice;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this