From 00d16af77343a5dec07c401e4597b03e28e1daa6 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Fri, 11 Aug 2000 15:51:01 +0000 Subject: Fix a crash with tab expansion in e_text_to_html svn path=/trunk/; revision=4736 --- e-util/ChangeLog | 6 ++++++ e-util/e-html-utils.c | 2 ++ 2 files changed, 8 insertions(+) (limited to 'e-util') diff --git a/e-util/ChangeLog b/e-util/ChangeLog index ce4de0c31a..e724f696d0 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,9 @@ +2000-08-11 Peter Williams + + * 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 * e-setup.[ch]: Remove. The shell tells the components where diff --git a/e-util/e-html-utils.c b/e-util/e-html-utils.c index 7ff97371eb..9aba42626e 100644 --- a/e-util/e-html-utils.c +++ b/e-util/e-html-utils.c @@ -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++; -- cgit v1.2.3