projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
297cd97
)
efl/embryo: Keep room for the terminating '\0' we may add to the path.
author
Stefan Schmidt
<stefan@datenfreihafen.org>
Fri, 14 Dec 2012 13:35:48 +0000
(13:35 +0000)
committer
Stefan Schmidt
<stefan@datenfreihafen.org>
Fri, 14 Dec 2012 13:35:48 +0000
(13:35 +0000)
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
src/bin/embryo/embryo_cc_sc1.c
patch
|
blob
|
history
diff --git
a/src/bin/embryo/embryo_cc_sc1.c
b/src/bin/embryo/embryo_cc_sc1.c
index 760bd3c1f66278c0e2316c9fd3e8deb4316bd1e2..2e0528cdd4966e9ddd47d957da11f40ed4e28bf5 100644
(file)
--- 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;