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

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