update _shipped file with hurd fix
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 2 Aug 2010 00:17:25 +0000 (02:17 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 2 Aug 2010 00:17:25 +0000 (02:17 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
scripts/kconfig/lex.zconf.c_shipped

index 4837bbf6454f4f8fa4574eadb4d0a890895ad53f..51f15e17543df71494fb9f3144ae0f372f96cd9e 100644 (file)
@@ -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");
                }