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
This commit is contained in:
Stefan Schmidt 2012-12-14 13:35:48 +00:00
parent 297cd971ab
commit 6a5c0eb7cf
1 changed files with 1 additions and 1 deletions

View File

@ -651,7 +651,7 @@ setopt(int argc, char **argv, char *iname, char *oname,
static void static void
setconfig(char *root) setconfig(char *root)
{ {
char path[PATH_MAX]; char path[PATH_MAX - 1];
char *ptr; char *ptr;
int len; int len;