forked from enlightenment/efl
evas/textblock: Do not write out of bounds.
The length is len so last array index must be len - 1. Better not corrupt memory. :) CID 1039302
This commit is contained in:
parent
84a7cefcc2
commit
4f484b81d4
|
@ -5821,7 +5821,7 @@ _escaped_char_get(const char *s, const char *s_end)
|
|||
len = sizeof(ustr);
|
||||
|
||||
memcpy(ustr, s, len);
|
||||
ustr[len] = '\0';
|
||||
ustr[len - 1] = '\0';
|
||||
uchar[0] = strtol(ustr, NULL, base);
|
||||
|
||||
if (uchar[0] == 0)
|
||||
|
|
Loading…
Reference in New Issue