tizen 2.3.1 release
[external/busybox.git] / packaging / update-scripts-kconfig-_shipped.patch
1 commit 6e06da5efd5d6e341ae2f5116c449994740f5613
2 Author: Denys Vlasenko <vda.linux@googlemail.com>
3 Date:   Mon Aug 2 02:17:25 2010 +0200
4
5     update _shipped file with hurd fix
6     
7     Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
8
9 diff --git a/scripts/kconfig/lex.zconf.c_shipped b/scripts/kconfig/lex.zconf.c_shipped
10 index 4837bbf..51f15e1 100644
11 --- a/scripts/kconfig/lex.zconf.c_shipped
12 +++ b/scripts/kconfig/lex.zconf.c_shipped
13 @@ -2235,13 +2235,14 @@ static void zconf_endhelp(void)
14   */
15  FILE *zconf_fopen(const char *name)
16  {
17 -       char *env, fullname[PATH_MAX+1];
18 +       char *env;
19         FILE *f;
20  
21         f = fopen(name, "r");
22         if (!f && name[0] != '/') {
23                 env = getenv(SRCTREE);
24                 if (env) {
25 +                       char *fullname = alloca(strlen(env) + strlen(name) + 2);
26                         sprintf(fullname, "%s/%s", env, name);
27                         f = fopen(fullname, "r");
28                 }