Got a warning about potentially too small array, increased size to avoid overflows

This commit is contained in:
jpekkila
2019-06-19 16:58:24 +03:00
parent 4ee772cf5d
commit 383d2b696c

View File

@@ -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 size_t n = AC_VTXBUF_SIZE(save_mesh.info);
const char* buffername = vtxbuf_names[w]; const char* buffername = vtxbuf_names[w];
char cstep[10]; char cstep[11];
char bin_filename[80] = "\0"; char bin_filename[80] = "\0";
// sprintf(bin_filename, ""); // sprintf(bin_filename, "");