summaryrefslogtreecommitdiff
path: root/src/bin/embryo
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@datenfreihafen.org>2012-12-14 13:35:48 +0000
committerStefan Schmidt <stefan@datenfreihafen.org>2012-12-14 13:35:48 +0000
commit6a5c0eb7cf9b9223958d94f2fb415babc088300b (patch)
tree2a63a9a560c4fe923ae38039dd21308cc56eb43d /src/bin/embryo
parent297cd971abc2ec807da433adb9a78ca73e16817b (diff)
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
Diffstat (limited to 'src/bin/embryo')
-rw-r--r--src/bin/embryo/embryo_cc_sc1.c2
1 files changed, 1 insertions, 1 deletions
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,
651static void 651static void
652setconfig(char *root) 652setconfig(char *root)
653{ 653{
654 char path[PATH_MAX]; 654 char path[PATH_MAX - 1];
655 char *ptr; 655 char *ptr;
656 int len; 656 int len;
657 657