embryo_cc: fix memory overflow in str

After for-loop i can have value 11. So the str should be longer than 11.

@fix
This commit is contained in:
WooHyun Jung 2016-09-12 10:09:32 +09:00
parent 2598ea8da8
commit 98229bc5d6
1 changed files with 1 additions and 1 deletions

View File

@ -454,7 +454,7 @@ matchsequence(char *start, char *end, char *pattern,
char symbols[_maxoptvars][_aliasmax + 1], int *match_length)
{
int var, i;
char str[_aliasmax + 1];
char str[_aliasmax + 2];
char *start_org = start;
*match_length = 0;