Skip to content

Commit

Permalink
ensure userrec size matches before invoking menu editor
Browse files Browse the repository at this point in the history
  • Loading branch information
wwiv committed May 22, 2021
1 parent 2daf042 commit f7a773c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wwivconfig/user_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ static void write_semaphore_if_user_online(const wwiv::sdk::Config& config, int
}

void user_editor(const wwiv::sdk::Config& config) {
if (config.userrec_length() != sizeof(userrec)) {
messagebox(curses_out->window(), "Userrec size doesn't match. User Editor not allowed");
return;
}
auto number_users = number_userrecs(config.datadir());
curses_out->Cls(ACS_CKBOARD);
auto need_names_list_rebuilt{false};
Expand Down

0 comments on commit f7a773c

Please sign in to comment.