From 2a8369330b76deebf8d97f1ec39460a72d47eabd Mon Sep 17 00:00:00 2001 From: allen Date: Sat, 7 Oct 2000 08:40:20 +0000 Subject: Bug fix in malloc statement git-svn-id: http://svn.cactuscode.org/arrangements/CactusIO/IOJpeg/trunk@23 eff87b29-5268-4891-90a3-a07138403961 --- src/GHExtension.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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;ivout_geo[iv] = (IOJpegGeo_t*) malloc(SLABSKEL_MAXDIM * sizeof (IOJpegGeo_t)); -- cgit v1.2.3