]> code.citadel.org Git - citadel.git/blobdiff - citadel/textclient/tuiconfig.c
Removed obsolete features from client
[citadel.git] / citadel / textclient / tuiconfig.c
index df5c43bd5099c74e93b420696f0d6c04d2424ca2..3ec778329a6353b9e499dd97f99416086a558db9 100644 (file)
@@ -63,6 +63,7 @@ extern long highest_msg_read;
 extern long maxmsgnum;
 extern unsigned room_flags;
 extern int screenwidth;
+char editor_path[PATH_MAX];
 
 
 /* 
@@ -567,7 +568,7 @@ void network_config_management(CtdlIPC *ipc, char *entrytype, char *comment)
        char *listing = NULL;
        int r;
 
-       if (IsEmptyStr(editor_paths[0])) {
+       if (IsEmptyStr(editor_path)) {
                scr_printf("You must have an external editor configured in"
                        " order to use this function.\n");
                return;
@@ -619,7 +620,7 @@ void network_config_management(CtdlIPC *ipc, char *entrytype, char *comment)
        if (editor_pid == 0) {
                chmod(filename, 0600);
                putenv("WINDOW_TITLE=Network configuration");
-               execlp(editor_paths[0], editor_paths[0], filename, NULL);
+               execlp(editor_path, editor_path, filename, NULL);
                exit(1);
        }
        if (editor_pid > 0) {