Skip to content

Commit

Permalink
Fix crash in listplus after ~130 files
Browse files Browse the repository at this point in the history
  • Loading branch information
wwiv committed Mar 29, 2021
1 parent 23ae3dd commit 6dc8033
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions bbs/utility.cpp
Expand Up @@ -230,11 +230,10 @@ std::string get_wildlist(const std::string& orig_file_mask) {
int side_menu(int* menu_pos, bool bNeedsRedraw, const std::vector<std::string>& menu_items, int xpos,
int ypos, side_menu_colors* smc) {
static int positions[20];

a()->tleft(true);

if (bNeedsRedraw) {
static int amount = 1;
int amount = 1;
positions[0] = xpos;
for (const auto& menu_item : menu_items) {
positions[amount] = positions[amount - 1] + wwiv::stl::ssize(menu_item) + 2;
Expand Down
2 changes: 1 addition & 1 deletion sdk/files/tic.cpp
Expand Up @@ -185,4 +185,4 @@ std::optional<directory_t> FindFileAreaForTic(const files::Dirs& dirs, const Tic
return std::nullopt;
}

} // namespace wwiv::sdk::files
} // namespace wwiv::sdk::files

0 comments on commit 6dc8033

Please sign in to comment.