diff options
author | allen <allen@eff87b29-5268-4891-90a3-a07138403961> | 2000-10-07 08:40:20 +0000 |
---|---|---|
committer | allen <allen@eff87b29-5268-4891-90a3-a07138403961> | 2000-10-07 08:40:20 +0000 |
commit | 2a8369330b76deebf8d97f1ec39460a72d47eabd (patch) | |
tree | bae256639500400bd62bbb7ce5af3a9bb084a1f1 | |
parent | 21e19aa807f404e962232d9768daa951492d72d3 (diff) |
Bug fix in malloc statement
git-svn-id: http://svn.cactuscode.org/arrangements/CactusIO/IOJpeg/trunk@23 eff87b29-5268-4891-90a3-a07138403961
-rw-r--r-- | src/GHExtension.c | 2 |
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)); |