patch-2.2.0-pre7 linux/scripts/lxdialog/menubox.c
Next file: linux/scripts/tkgen.c
Previous file: linux/scripts/Menuconfig
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Sat Jan 9 19:16:44 1999
- Orig file:
v2.2.0-pre6/linux/scripts/lxdialog/menubox.c
- Orig date:
Thu Nov 12 16:21:25 1998
diff -u --recursive --new-file v2.2.0-pre6/linux/scripts/lxdialog/menubox.c linux/scripts/lxdialog/menubox.c
@@ -48,6 +48,12 @@
* *) If for some reason the last scrolling position is not saved by
* lxdialog, it sets the scrolling so that the selected item is in the
* middle of the menu box, not at the bottom.
+ *
+ * 02 January 1999, Michael Elizabeth Chastain (mec@shout.net)
+ * Reset 'scroll' to 0 if the value from lxdialog.scrltmp is bogus.
+ * This fixes a bug in Menuconfig where using ' ' to descend into menus
+ * would leave mis-synchronized lxdialog.scrltmp files lying around,
+ * fscanf would read in 'scroll', and eventually that value would get used.
*/
#include "dialog.h"
@@ -227,6 +233,7 @@
choice = choice - scroll;
fclose(f);
} else {
+ scroll=0;
remove("lxdialog.scrltmp");
fclose(f);
f=NULL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov