diff options
author | tradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350> | 2004-06-11 08:57:18 +0000 |
---|---|---|
committer | tradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350> | 2004-06-11 08:57:18 +0000 |
commit | 530360d6676476972d14f3134d85d38f4404cb75 (patch) | |
tree | 55c8f024df516bf5b1af93efa162aea5c05617cb | |
parent | 98bc87067e54f21301d12619588c271488edd412 (diff) |
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
-rw-r--r-- | src/Write1D.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |