Fixed compilation.
authorTom Hacohen <tom@stosb.com>
Mon, 11 Mar 2013 10:34:32 +0000 (10:34 +0000)
committerTom Hacohen <tom@stosb.com>
Mon, 11 Mar 2013 10:34:32 +0000 (10:34 +0000)
src/lib/elm_entry.c

index 793232433a0fb5bcf1f60c710c259ce455ed24bd..e1dbbefaff1990db1bc62381d48c0066b03c150a 100644 (file)
@@ -2430,8 +2430,8 @@ _elm_entry_text_get(const Evas_Object *obj, const char *item)
         size_t tlen;
         tlen = strlen(text);
        /* FIXME: need that or we do copy unitialised data */
-        tmpbuf = calloc(1, tlen + sd->append_text_len -
-              sd->append_text_position + 1);
+        tmpbuf = calloc(1, tlen + wd->append_text_len -
+              wd->append_text_position + 1);
         if (!tmpbuf)
           {
              ERR("Failed to allocate memory for entry's text %p", obj);