forked from enlightenment/efl
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:
parent
5d021658ad
commit
90c0eb15a4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue