Evas textblock: strcpy->strncpy in a place we use a cached len, to be on the safe side.

SVN revision: 57025
This commit is contained in:
Tom Hacohen 2011-02-14 15:02:58 +00:00
parent 2a2f88aa2c
commit b2bf107e38
1 changed files with 1 additions and 1 deletions

View File

@ -2537,7 +2537,7 @@ _layout_item_merge_and_free(Ctxt *c,
#endif
tmp = realloc(item1->text, (len1 + len2 + 1) * sizeof(Eina_Unicode));
eina_unicode_strcpy(tmp + len1, item2->text);
eina_unicode_strncpy(tmp + len1, item2->text, len2);
item1->text = tmp;
item1->text[len1 + len2] = 0;