Fix a crash with tab expansion in e_text_to_html
svn path=/trunk/; revision=4736
This commit is contained in:
@ -1,3 +1,9 @@
|
||||
2000-08-11 Peter Williams <peterw@helixcode.com>
|
||||
|
||||
* e-html-utils.c (e_text_to_html): Fix the tab expansion
|
||||
for when the length would exceed the ten characters that
|
||||
we allocated.
|
||||
|
||||
2000-08-10 Dan Winship <danw@helixcode.com>
|
||||
|
||||
* e-setup.[ch]: Remove. The shell tells the components where
|
||||
|
@ -228,6 +228,8 @@ e_text_to_html (const char *input, unsigned int flags)
|
||||
if (flags & (E_TEXT_TO_HTML_CONVERT_SPACES |
|
||||
E_TEXT_TO_HTML_CONVERT_NL)) {
|
||||
do {
|
||||
check_size (&buffer, &buffer_size,
|
||||
out, 6);
|
||||
strcpy (out, " ");
|
||||
out += 6;
|
||||
col++;
|
||||
|
Reference in New Issue
Block a user