tasn pushed a commit to branch master.
commit c2fdd92a93b9a44192017463cbf7b741567f8f82
Author: Tom Hacohen <[email protected]>
Date: Mon Mar 11 10:19:29 2013 +0000
Entry: Fixed a bug with text appending.
The target buffer was not large enough.
---
ChangeLog | 5 +++++
NEWS | 1 +
src/lib/elm_entry.c | 3 ++-
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index bcd73fe..3d6a2f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1141,3 +1141,8 @@
* Fixed a bug that naviframe's focus_next didn't work after changing
evenry item to elm_layout.
* Naviframe is now supproting .
+
+2013-03-11 Tom Hacohen (TAsn)
+
+ * Entry: Fixed a bug with text appending.
+
diff --git a/NEWS b/NEWS
index 0585e87..39f1c1b 100644
--- a/NEWS
+++ b/NEWS
@@ -181,6 +181,7 @@ Fixes:
* Fix the toolbar cannot be unselected when it's mode is
ELM_OBJECT_SELECT_MODE_ALWAYS.
* Remove the back button callback if the back button is unset on the
naviframe.
* Fixed a bug that naviframe's focus_next didn't work after changing evenry
item to elm_layout.
+ * Entry: Fixed a bug with text appending.
Removals:
diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index 10756c6..0df541f 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -2596,7 +2596,8 @@ proceed:
tlen = strlen(text);
/* FIXME: need that or we do copy unitialised data */
- tmpbuf = calloc(1, sd->append_text_len + 1);
+ tmpbuf = calloc(1, tlen + sd->append_text_len -
+ sd->append_text_position + 1);
if (!tmpbuf)
{
ERR("Failed to allocate memory for entry's text %p", obj);
--
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev