[evolution] Bug 732891 - Crash under process_elements()



commit 8ac07142dbde485a8c5fb21835b2dceb5dc60ad7
Author: Tomas Popela <tpopela redhat com>
Date:   Mon Apr 20 16:40:22 2015 +0200

    Bug 732891 - Crash under process_elements()

 e-util/e-html-editor-view.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index fcd35e1..a804c87 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -7993,11 +7993,11 @@ process_elements (EHTMLEditorView *view,
                                 * replaced by single whitespace */
                                if (strstr (content, "\x9")) {
                                        if (buffer->str && *buffer->str) {
-                                               gchar *start_of_line = g_strrstr_len (
-                                                       buffer->str, -1, "\n") + 1;
+                                               const gchar *start_of_line = g_strrstr_len (
+                                                       buffer->str, -1, "\n");
 
                                                if (start_of_line && *start_of_line)
-                                                       char_count = strlen (start_of_line);
+                                                       char_count = strlen (start_of_line + 1);
                                        } else
                                                char_count = 0;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]