Fix a crash with tab expansion in e_text_to_html

svn path=/trunk/; revision=4736
This commit is contained in:
Peter Williams
2000-08-11 15:51:01 +00:00
parent 2a7ffa8cf1
commit 00d16af773
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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, "&nbsp;");
out += 6;
col++;