From: Denys Vlasenko Date: Mon, 2 Aug 2010 00:17:25 +0000 (+0200) Subject: update _shipped file with hurd fix X-Git-Tag: 1_18_0~357 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6e06da5efd5d6e341ae2f5116c449994740f5613;p=oweals%2Fbusybox.git update _shipped file with hurd fix Signed-off-by: Denys Vlasenko --- 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"); }