embryo_cc: prevent memory curruption

Summary:
modified codes according to prevent result,
@fix

Reviewers: Jaehyun, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2564

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
jiin.moon 2015-05-26 18:31:12 +02:00 committed by Cedric BAIL
parent ab147386ad
commit 4cb4a8c70a
1 changed files with 1 additions and 1 deletions

View File

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