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:
Stefan Schmidt 2013-08-09 11:54:42 +01:00
parent 84a7cefcc2
commit 4f484b81d4
1 changed files with 1 additions and 1 deletions

View File

@ -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)