forked from enlightenment/efl
embryo_cc_sc2.c: prevent memory corruption.
Summary: Modified code to following coverity result. (overflow the memory access.) @fix Reviewers: raster, Hermet Reviewed By: Hermet Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1893
This commit is contained in:
parent
60b1f44fdf
commit
648ccd3155
|
@ -1106,7 +1106,7 @@ command(void)
|
|||
while ((*lptr <= ' ') && (*lptr != '\0'))
|
||||
lptr++;
|
||||
for (i = 0;
|
||||
(i < (int)(sizeof(name))) &&
|
||||
(i < (int)(sizeof(name)) - 1) &&
|
||||
(sc_isalpha(*lptr));
|
||||
i++, lptr++)
|
||||
name[i] = *lptr;
|
||||
|
|
Loading…
Reference in New Issue