From: Stefan Schmidt Date: Fri, 14 Dec 2012 13:35:48 +0000 (+0000) Subject: efl/embryo: Keep room for the terminating '\0' we may add to the path. X-Git-Tag: submit/efl/20131015.063327~2858 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a5c0eb7cf9b9223958d94f2fb415babc088300b;p=platform%2Fupstream%2Fefl.git efl/embryo: Keep room for the terminating '\0' we may add to the path. If we go with PATH_MAX we could go out of bounds of this array. Not going to happen that often really but better safe then sorry. SVN revision: 80940 --- diff --git a/src/bin/embryo/embryo_cc_sc1.c b/src/bin/embryo/embryo_cc_sc1.c index 760bd3c1f6..2e0528cdd4 100644 --- a/src/bin/embryo/embryo_cc_sc1.c +++ b/src/bin/embryo/embryo_cc_sc1.c @@ -651,7 +651,7 @@ setopt(int argc, char **argv, char *iname, char *oname, static void setconfig(char *root) { - char path[PATH_MAX]; + char path[PATH_MAX - 1]; char *ptr; int len;