Bug#188043: cdebconf-udeb: Unable to handle long multiselect lists
I added a test script in cdebconf/src/test/ to demonstrate the bug
(longselect.*), and used this to try to find the problem. The
following patch fixed the problem for the test script, but I belive it
is better to rewrite the code to not depend on a hardcoded max limit.
Index: template.c
===================================================================
RCS file: /cvs/debian-boot/debian-installer/tools/cdebconf/src/template.c,v
retrieving revision 1.21
diff -u -3 -p -u -r1.21 template.c
--- template.c 19 Dec 2002 00:38:44 -0000 1.21
+++ template.c 19 Apr 2003 19:47:34 -0000
@@ -460,7 +460,7 @@ static void remove_newlines(char *text)
struct template *template_load(const char *filename)
{
- char buf[2048], extdesc[8192];
+ char buf[4096], extdesc[8192];
char *lang;
char *p;
char *cp;
Reply to: