From 20e81962b70b9d6d265409176cb7496d516717c5 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Fri, 19 Oct 2018 14:48:29 +1000 Subject: [PATCH] fix for deleting bbses if you don't own it. --- src/bbs_list.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bbs_list.c b/src/bbs_list.c index ad86467..db63170 100644 --- a/src/bbs_list.c +++ b/src/bbs_list.c @@ -259,8 +259,9 @@ void bbs_list() { } redraw = 1; } else if (tolower(c) == 'd') { - struct bbs_list_entry_t *entry = ptr_vector_del(&entries, selected); + struct bbs_list_entry_t *entry = ptr_vector_get(&entries, selected); if (delete_bbs(entry->id)) { + ptr_vector_del(&entries, selected); free(entry->bbsname); free(entry->sysopname); free(entry->telnet);