summaryrefslogtreecommitdiff
path: root/src/lib/elm_entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elm_entry.c')
-rw-r--r--src/lib/elm_entry.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index 8684a7049..793232433 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -2429,7 +2429,9 @@ _elm_entry_text_get(const Evas_Object *obj, const char *item)
2429 char *tmpbuf; 2429 char *tmpbuf;
2430 size_t tlen; 2430 size_t tlen;
2431 tlen = strlen(text); 2431 tlen = strlen(text);
2432 tmpbuf = malloc(wd->append_text_len + 1); 2432 /* FIXME: need that or we do copy unitialised data */
2433 tmpbuf = calloc(1, tlen + sd->append_text_len -
2434 sd->append_text_position + 1);
2433 if (!tmpbuf) 2435 if (!tmpbuf)
2434 { 2436 {
2435 ERR("Failed to allocate memory for entry's text %p", obj); 2437 ERR("Failed to allocate memory for entry's text %p", obj);