[evolution/wip/webkit2] Bug 732891 - Crash under process_elements()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Bug 732891 - Crash under process_elements()
- Date: Wed, 24 Feb 2016 17:45:38 +0000 (UTC)
commit d73e939ebcc7ae8a4a3777a869ff1481278faabf
Author: Tomas Popela <tpopela redhat com>
Date: Wed Feb 24 18:41:16 2016 +0100
Bug 732891 - Crash under process_elements()
.../composer/e-html-editor-view-dom-functions.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-view-dom-functions.c
b/web-extensions/composer/e-html-editor-view-dom-functions.c
index 82cf6e2..4683abd 100644
--- a/web-extensions/composer/e-html-editor-view-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-view-dom-functions.c
@@ -5704,11 +5704,11 @@ process_elements (EHTMLEditorWebExtension *extension,
* 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]