aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/GHExtension.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GHExtension.c b/src/GHExtension.c
index 28f3cdc..4d03287 100644
--- a/src/GHExtension.c
+++ b/src/GHExtension.c
@@ -22,7 +22,7 @@ void *IOJpeg_SetupGH (tFleshConfig *config, int convergence_level, cGH *GH)
newGH->out2D_last = (int *) malloc (numvars * sizeof (int));
/* Allocate geometry structure for each grid variable/array */
- newGH->out_geo = (IOJpegGeo_t**) malloc(SLABSKEL_MAXDIM * sizeof (IOJpegGeo_t));
+ newGH->out_geo = (IOJpegGeo_t**) malloc(numvars * sizeof (IOJpegGeo_t));
for (iv=0;iv<numvars;iv++)
{
newGH->out_geo[iv] = (IOJpegGeo_t*) malloc(SLABSKEL_MAXDIM * sizeof (IOJpegGeo_t));