extern long maxmsgnum;
extern unsigned room_flags;
extern int screenwidth;
+char editor_path[PATH_MAX];
/*
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;
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) {