summaryrefslogtreecommitdiff
path: root/extra/config/mconf.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-09 20:58:05 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-09 20:58:05 +0000
commitb0ca0c39870912f7784a22df8f9e16f07fd3895d (patch)
treed26b7339056b588a26af094b145b4c20c1fe4e82 /extra/config/mconf.c
parentc159d8fb27d14f3e1fa8d743a30c652a6158eff2 (diff)
Update from upstream
Diffstat (limited to 'extra/config/mconf.c')
-rw-r--r--extra/config/mconf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/extra/config/mconf.c b/extra/config/mconf.c
index 27c0c5340..fd2941256 100644
--- a/extra/config/mconf.c
+++ b/extra/config/mconf.c
@@ -12,6 +12,7 @@
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
+#include <limits.h>
#include <signal.h>
#include <stdarg.h>
#include <stdlib.h>
@@ -83,6 +84,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;
@@ -662,7 +664,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:
@@ -691,7 +693,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: