Evas textblock: strcpy->strncpy (although the buffer is always big enough).

Many tools will complain about the use of strcpy, and it's not that hard to use
strncpy anyway.

CID1039581.
This commit is contained in:
Tom Hacohen 2014-08-12 10:11:41 +01:00
parent 5d021658ad
commit 90c0eb15a4
1 changed files with 1 additions and 1 deletions

View File

@ -6137,7 +6137,7 @@ _escaped_char_get(const char *s, const char *s_end)
return NULL;
utf8_char = eina_unicode_unicode_to_utf8(uchar, NULL);
strcpy(utf8_escape, utf8_char);
strncpy(utf8_escape, utf8_char, sizeof(utf8_escape));
free(utf8_char);
return utf8_escape;