From 00d16af77343a5dec07c401e4597b03e28e1daa6 Mon Sep 17 00:00:00 2001
From: Peter Williams <peterw@src.gnome.org>
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/e-html-utils.c | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'e-util/e-html-utils.c')

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