patch-2.0.31 linux/scripts/lxdialog/lxdialog.c
Next file: linux/CREDITS
Previous file: linux/scripts/ksymoops.cc
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Sun Aug 3 15:38:39 1997
- Orig file:
v2.0.30/linux/scripts/lxdialog/lxdialog.c
- Orig date:
Sun Feb 25 01:17:58 1996
diff -u --recursive --new-file v2.0.30/linux/scripts/lxdialog/lxdialog.c linux/scripts/lxdialog/lxdialog.c
@@ -119,7 +119,8 @@
if (modePtr->argmax && argc - offset > modePtr->argmax)
Usage (argv[0]);
-
+ if (title && strlen(title) > atoi(argv[offset+4])-4)
+ title[atoi(argv[offset+4])-4] = 0;
init_dialog ();
retval = (*(modePtr->jumper)) (title, argc - offset, argv + offset);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov