forked from enlightenment/efl
why strlen wat u are about to ewalk thru anyway WHEN U ALREADY KNOW
THE LENGTH! use actual known length. SVN revision: 69963
This commit is contained in:
parent
ddf6442fb6
commit
fb842ee933
|
@ -2384,7 +2384,7 @@ _elm_entry_text_get(const Evas_Object *obj, const char *item)
|
|||
}
|
||||
memcpy(tmpbuf, text, tlen);
|
||||
if (wd->append_text_left)
|
||||
memcpy(tmpbuf + tlen, wd->append_text_left, strlen(wd->append_text_left));
|
||||
memcpy(tmpbuf + tlen, wd->append_text_left, wd->append_text_len);
|
||||
tmpbuf[tlen + wd->append_text_len] = '\0';
|
||||
eina_stringshare_replace(&wd->text, tmpbuf);
|
||||
free(tmpbuf);
|
||||
|
|
Loading…
Reference in New Issue