From 45be424b8adb986ba7714995fe7cf43e7dfa32f9 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Mon, 8 Aug 2016 17:21:04 +1000 Subject: [PATCH] Fix Crash --- files.c | 3 ++- main.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/files.c b/files.c index 45cb369..5e61761 100644 --- a/files.c +++ b/files.c @@ -422,7 +422,7 @@ void download(struct user_record *user) { sqlite3_finalize(res); sqlite3_close(db); } - + if (sshBBS) { tcsetattr(STDIN_FILENO, TCSANOW, &oldit); tcsetattr(STDOUT_FILENO, TCSANOW, &oldot); @@ -746,6 +746,7 @@ int file_menu(struct user_record *user) { break; case '}': { + for (i=user->cur_file_dir;isec_level = atoi(value); } } else {