From 530360d6676476972d14f3134d85d38f4404cb75 Mon Sep 17 00:00:00 2001 From: tradke Date: Fri, 11 Jun 2004 08:57:18 +0000 Subject: Fixed out-of-bounds array access for downsample[], a bug found by Yosef Zlochower. This closes PR CactusBase/1765: 'array subsrcipt out of bounds in array "downsample"'. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOASCII/trunk@183 94b1c47f-dcfd-45ef-a468-0854c0e9e350 --- src/Write1D.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Write1D.c b/src/Write1D.c index d40cb79..008e9e3 100644 --- a/src/Write1D.c +++ b/src/Write1D.c @@ -142,7 +142,7 @@ int IOASCII_Write1D (const cGH *GH, int vindex, const char *alias) FILE *file[8]; CCTK_REAL offset; CCTK_REAL coord_lower[3]; - CCTK_INT downsample[3]; + CCTK_INT downsample[4]; CCTK_INT *origin, *direction; CCTK_INT hsize, extent; CCTK_INT vindices[2]; -- cgit v1.2.3