aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-html-utils.c
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/e-html-utils.c
parent2a7ffa8cf1bf8747267f06fab9387ad48fb29a1f (diff)
downloadgsoc2013-evolution-00d16af77343a5dec07c401e4597b03e28e1daa6.tar
gsoc2013-evolution-00d16af77343a5dec07c401e4597b03e28e1daa6.tar.gz
gsoc2013-evolution-00d16af77343a5dec07c401e4597b03e28e1daa6.tar.bz2
gsoc2013-evolution-00d16af77343a5dec07c401e4597b03e28e1daa6.tar.lz
gsoc2013-evolution-00d16af77343a5dec07c401e4597b03e28e1daa6.tar.xz
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/e-html-utils.c')
-rw-r--r--e-util/e-html-utils.c2
1 files changed, 2 insertions, 0 deletions
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++;