From acff4dacfa687a28d1a5bcec977df1eb5dcc6662 Mon Sep 17 00:00:00 2001 From: raster Date: Mon, 9 Apr 2012 07:43:21 +0000 Subject: [PATCH] why strlen wat u are about to ewalk thru anyway WHEN U ALREADY KNOW THE LENGTH! use actual known length. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@69963 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 141cd67..cd106a3 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -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); -- 2.7.4