diff options
author | Roman Zippel <zippel@linux-m68k.org> | 2002-11-08 20:26:20 -0800 |
---|---|---|
committer | Vojtech Pavlik <vojtech@suse.cz> | 2002-11-08 20:26:20 -0800 |
commit | 5b6d433ec4909cb28e592c09f1ea48f717b3667c (patch) | |
tree | e08e676b3a10791d352a859b98732523557762e2 /scripts/kconfig/mconf.c | |
parent | 551822807cff3b91847b00e68d6cde9c8cbbe22e (diff) | |
download | history-5b6d433ec4909cb28e592c09f1ea48f717b3667c.tar.gz |
[PATCH] kconfig update
- fix loading of another configuration
- accept longer strings in configuration
- move conf_filename to mconf.c (it's the only user)
- fix off by one error during string scanning
Diffstat (limited to 'scripts/kconfig/mconf.c')
-rw-r--r-- | scripts/kconfig/mconf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index 1ac145e6866b8..30148873184ce 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c @@ -11,6 +11,7 @@ #include <ctype.h> #include <errno.h> #include <fcntl.h> +#include <limits.h> #include <signal.h> #include <stdarg.h> #include <stdlib.h> @@ -82,6 +83,7 @@ save_config_help[] = static char buf[4096], *bufptr = buf; static char input_buf[4096]; +static char filename[PATH_MAX+1] = ".config"; static char *args[1024], **argptr = args; static int indent = 0; static struct termios ios_org; @@ -661,7 +663,7 @@ static void conf_load(void) cprint(load_config_text); cprint("11"); cprint("55"); - cprint("%s", conf_filename); + cprint("%s", filename); stat = exec_conf(); switch(stat) { case 0: @@ -690,7 +692,7 @@ static void conf_save(void) cprint(save_config_text); cprint("11"); cprint("55"); - cprint("%s", conf_filename); + cprint("%s", filename); stat = exec_conf(); switch(stat) { case 0: |