embryo : Prevent buffer overflow in embryo_cc_sc2

Reviewers: jypark

Reviewed By: jypark

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4304
This commit is contained in:
JEONGHYUN YUN 2016-09-20 15:31:16 +08:30 committed by Ji-Youn Park
parent 07ffb2e5c5
commit 078c4a9f11
1 changed files with 1 additions and 1 deletions

View File

@ -1005,7 +1005,7 @@ command(void)
int i;
for (i = 0;
(i < (int)(sizeof(name))) &&
(i < (int)(sizeof(name)) - 1) &&
(alphanum(*lptr));
i++, lptr++)
name[i] = *lptr;