forked from enlightenment/efl
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:
parent
ab147386ad
commit
4cb4a8c70a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue