[evolution/gnome-3-16] Bug 732891 - Crash under process_elements()
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-16] Bug 732891 - Crash under process_elements()
- Date: Tue, 21 Apr 2015 06:40:25 +0000 (UTC)
commit baaa44262056309ba289e63df92022767447f035
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 19fd622..eec8244 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -7997,11 +7997,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]