Skip to content

Commit

Permalink
Making enough room for buffer make_saver
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Sep 6, 2023
1 parent 0d76f14 commit 5abd1e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion epiworld.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6754,7 +6754,7 @@ inline std::function<void(size_t,Model<TSeq>*)> make_save_run(
std::string reproductive = "";
std::string generation = "";

char buff[fmt.size()*2 + 1u];
char buff[1024u];
if (what_to_save[0u])
{
virus_info = fmt + std::string("_virus_info.csv");
Expand Down
2 changes: 1 addition & 1 deletion include/epiworld/model-meat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ inline std::function<void(size_t,Model<TSeq>*)> make_save_run(
std::string reproductive = "";
std::string generation = "";

char buff[fmt.size()*2 + 1u];
char buff[1024u];
if (what_to_save[0u])
{
virus_info = fmt + std::string("_virus_info.csv");
Expand Down

0 comments on commit 5abd1e5

Please sign in to comment.