diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-08-02 02:17:25 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-08-02 02:17:25 +0200 |
commit | 6e06da5efd5d6e341ae2f5116c449994740f5613 (patch) | |
tree | a5df381bfed46c7e4e76e3869c950f469e42d922 | |
parent | b883bc9884d1e01f9653eb5e7b4a59da80162d3b (diff) | |
download | busybox-w32-6e06da5efd5d6e341ae2f5116c449994740f5613.tar.gz busybox-w32-6e06da5efd5d6e341ae2f5116c449994740f5613.tar.bz2 busybox-w32-6e06da5efd5d6e341ae2f5116c449994740f5613.zip |
update _shipped file with hurd fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | scripts/kconfig/lex.zconf.c_shipped | 3 |
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) | |||
2235 | */ | 2235 | */ |
2236 | FILE *zconf_fopen(const char *name) | 2236 | FILE *zconf_fopen(const char *name) |
2237 | { | 2237 | { |
2238 | char *env, fullname[PATH_MAX+1]; | 2238 | char *env; |
2239 | FILE *f; | 2239 | FILE *f; |
2240 | 2240 | ||
2241 | f = fopen(name, "r"); | 2241 | f = fopen(name, "r"); |
2242 | if (!f && name[0] != '/') { | 2242 | if (!f && name[0] != '/') { |
2243 | env = getenv(SRCTREE); | 2243 | env = getenv(SRCTREE); |
2244 | if (env) { | 2244 | if (env) { |
2245 | char *fullname = alloca(strlen(env) + strlen(name) + 2); | ||
2245 | sprintf(fullname, "%s/%s", env, name); | 2246 | sprintf(fullname, "%s/%s", env, name); |
2246 | f = fopen(fullname, "r"); | 2247 | f = fopen(fullname, "r"); |
2247 | } | 2248 | } |