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

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