Entry: Fixed a bug with text appending.

The target buffer was not large enough.
This commit is contained in:
Tom Hacohen 2013-03-11 10:19:29 +00:00
parent 2cb1f66c54
commit 1eefdc8733
3 changed files with 8 additions and 1 deletions

View File

@ -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.

View File

@ -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:

View File

@ -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);