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:
Carsten Haitzler 2012-04-09 07:43:21 +00:00
parent ddf6442fb6
commit fb842ee933
1 changed files with 1 additions and 1 deletions

View File

@ -2384,7 +2384,7 @@ _elm_entry_text_get(const Evas_Object *obj, const char *item)
} }
memcpy(tmpbuf, text, tlen); memcpy(tmpbuf, text, tlen);
if (wd->append_text_left) 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'; tmpbuf[tlen + wd->append_text_len] = '\0';
eina_stringshare_replace(&wd->text, tmpbuf); eina_stringshare_replace(&wd->text, tmpbuf);
free(tmpbuf); free(tmpbuf);