summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorjiin.moon <jiin.moon@samsung.com>2015-05-26 18:31:12 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-05-27 00:31:06 +0200
commit4cb4a8c70af20f08175fa043722e2cec710605c8 (patch)
treefdb097dcfd8dc1f707d248e2cb12bd483a9e7bfb /src/bin
parentab147386adddd057834bda274a2edbcda890cb4d (diff)
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>
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/embryo/embryo_cc_sc2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/embryo/embryo_cc_sc2.c b/src/bin/embryo/embryo_cc_sc2.c
index 7f0a125666..6956a80058 100644
--- a/src/bin/embryo/embryo_cc_sc2.c
+++ b/src/bin/embryo/embryo_cc_sc2.c
@@ -1042,7 +1042,7 @@ command(void)
1042 while ((*lptr <= ' ') && (*lptr != '\0')) 1042 while ((*lptr <= ' ') && (*lptr != '\0'))
1043 lptr++; 1043 lptr++;
1044 for (i = 0; 1044 for (i = 0;
1045 (i < (int)(sizeof(name))) && 1045 (i < (int)(sizeof(name)) - 1) &&
1046 (alphanum(*lptr)); 1046 (alphanum(*lptr));
1047 i++, lptr++) 1047 i++, lptr++)
1048 name[i] = *lptr; 1048 name[i] = *lptr;