Bug#316501: cdebconf: trailing characters when displaying long multiline descriptions
Package: cdebconf
Version: 0.74.2
Severity: minor
Tags: patch
When cdebconf displays a template with multiline descriptions, the last
n(n== the number of of newlines in the original extended_description)
characters of the description will be shown after it.
The origin of the problem is the remove_newline function in template.c, which
doeasn't apply a \0 after the truncated string.
Regards,
Tamas Pal <folti@balabit.hu>
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=C, LC_CTYPE=hu_HU.UTF-8 (charmap=UTF-8)
Versions of packages cdebconf depends on:
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii libdebian-installer4 0.29 Library of common debian-installer
ii libnewt0.51 0.51.6-20 Not Erik's Windowing Toolkit - tex
ii libtextwrap1 0.1-1 text-wrapping library with i18n -
diff -Naur cdebconf-sarge/src/template.c cdebconf/src/template.c
--- cdebconf-sarge/src/template.c 2005-07-01 13:06:38.000000000 +0200
+++ cdebconf/src/template.c 2005-07-01 13:07:06.000000000 +0200
@@ -541,6 +541,7 @@
}
out++;
}
+ *out='\0';
}
struct template *template_load(const char *filename)
Reply to: