From 383d2b696cfe2d7228622678608f0d0beb1129ee Mon Sep 17 00:00:00 2001 From: jpekkila Date: Wed, 19 Jun 2019 16:58:24 +0300 Subject: [PATCH] Got a warning about potentially too small array, increased size to avoid overflows --- src/standalone/simulation.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/standalone/simulation.cc b/src/standalone/simulation.cc index ecd2f97..57cd0fe 100644 --- a/src/standalone/simulation.cc +++ b/src/standalone/simulation.cc @@ -123,7 +123,7 @@ save_mesh(const AcMesh& save_mesh, const int step, const AcReal t_step) const size_t n = AC_VTXBUF_SIZE(save_mesh.info); const char* buffername = vtxbuf_names[w]; - char cstep[10]; + char cstep[11]; char bin_filename[80] = "\0"; // sprintf(bin_filename, "");