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:
woochan lee 2015-01-26 13:50:16 +09:00 committed by ChunEon Park
parent 60b1f44fdf
commit 648ccd3155
1 changed files with 1 additions and 1 deletions

View File

@ -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;