aboutsummaryrefslogtreecommitdiff
path: root/scripts/kconfig/lex.zconf.c_shipped
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-08-02 02:17:25 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-08-02 02:17:25 +0200
commit6e06da5efd5d6e341ae2f5116c449994740f5613 (patch)
treea5df381bfed46c7e4e76e3869c950f469e42d922 /scripts/kconfig/lex.zconf.c_shipped
parentb883bc9884d1e01f9653eb5e7b4a59da80162d3b (diff)
downloadbusybox-6e06da5efd5d6e341ae2f5116c449994740f5613.tar.gz
update _shipped file with hurd fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/kconfig/lex.zconf.c_shipped')
-rw-r--r--scripts/kconfig/lex.zconf.c_shipped3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/kconfig/lex.zconf.c_shipped b/scripts/kconfig/lex.zconf.c_shipped
index 4837bbf64..51f15e175 100644
--- a/scripts/kconfig/lex.zconf.c_shipped
+++ b/scripts/kconfig/lex.zconf.c_shipped
@@ -2235,13 +2235,14 @@ static void zconf_endhelp(void)
*/
FILE *zconf_fopen(const char *name)
{
- char *env, fullname[PATH_MAX+1];
+ char *env;
FILE *f;
f = fopen(name, "r");
if (!f && name[0] != '/') {
env = getenv(SRCTREE);
if (env) {
+ char *fullname = alloca(strlen(env) + strlen(name) + 2);
sprintf(fullname, "%s/%s", env, name);
f = fopen(fullname, "r");
}