[conglomerate] Fixes crash. See bug #561895 for more details.
- From: Nickolay V. Shmyrev <nshmyrev src gnome org>
- To: svn-commits-list gnome org
- Subject: [conglomerate] Fixes crash. See bug #561895 for more details.
- Date: Wed, 22 Jul 2009 23:45:24 +0000 (UTC)
commit b250e432e027c9266a2de0b9eef4ba00d63215f6
Author: Andrew Clayton <andrew digital-domain net>
Date: Thu Jul 23 03:44:33 2009 +0400
Fixes crash. See bug #561895 for more details.
src/ChangeLog | 6 ++++++
src/cong-location.c | 2 ++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/ChangeLog b/src/ChangeLog
index 074dd00..2c86f8f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
+2009-06-23 Andrew Clayton <andrew digital-domain net>
+
+ * cong-location.c:
+
+ Fixes crash
+
2008-07-28 Geert Stappers <stappers stappers nl>
* cong-editor-widget3.c (set_editor_node_selection):
diff --git a/src/cong-location.c b/src/cong-location.c
index ba02863..9dcbb37 100644
--- a/src/cong-location.c
+++ b/src/cong-location.c
@@ -458,6 +458,8 @@ cong_location_del_next_char (CongDocument *doc,
char_after_next = g_utf8_find_next_char(next_char, NULL);
if (char_after_next) {
CONG_VALIDATE_UTF8(char_after_next);
+ new_text = g_realloc(new_text, strlen(new_text) +
+ strlen(char_after_next) + 1);
new_text = strcat (new_text, char_after_next);
CONG_VALIDATE_UTF8(new_text);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]