aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorPeter Williams <peterw@src.gnome.org>2000-08-11 23:51:01 +0800
committerPeter Williams <peterw@src.gnome.org>2000-08-11 23:51:01 +0800
commit00d16af77343a5dec07c401e4597b03e28e1daa6 (patch)
tree7373a710f5dd3e4e5f15c9ab31b1f9725e656c46 /e-util
parent2a7ffa8cf1bf8747267f06fab9387ad48fb29a1f (diff)
downloadgsoc2013-evolution-00d16af77343a5dec07c401e4597b03e28e1daa6.tar.gz
gsoc2013-evolution-00d16af77343a5dec07c401e4597b03e28e1daa6.tar.zst
gsoc2013-evolution-00d16af77343a5dec07c401e4597b03e28e1daa6.zip
Fix a crash with tab expansion in e_text_to_html
svn path=/trunk/; revision=4736
Diffstat (limited to 'e-util')
-rw-r--r--e-util/ChangeLog6
-rw-r--r--e-util/e-html-utils.c2
2 files changed, 8 insertions, 0 deletions
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 <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
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, "&nbsp;");
out += 6;
col++;