diff options
author | knarf <knarf@eff87b29-5268-4891-90a3-a07138403961> | 2014-05-27 16:43:01 +0000 |
---|---|---|
committer | knarf <knarf@eff87b29-5268-4891-90a3-a07138403961> | 2014-05-27 16:43:01 +0000 |
commit | b900668a5689127b993b552ebd4a051ce42405a9 (patch) | |
tree | 41904d8edcb6e0aef9457608d2fffd92a5585ff7 | |
parent | 9900d69c965e86a61d5a15aa68d6047445ebc86c (diff) |
make sure to allocate the right amount of memory (use the right variable type here)svn
git-svn-id: http://svn.cactuscode.org/arrangements/CactusIO/IOJpeg/trunk@157 eff87b29-5268-4891-90a3-a07138403961
-rw-r--r-- | src/Write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Write.c b/src/Write.c index ccd824a..7152919 100644 --- a/src/Write.c +++ b/src/Write.c @@ -202,7 +202,7 @@ int IOJpeg_Write (const cGH *GH, CCTK_INT vindex, const char *alias) } assert (CCTK_VarTypeSize (gdata.vartype) <= imax); } - total_hsize = hsize[0] * hsize[1] * CCTK_VarTypeSize (gdata.vartype); + total_hsize = hsize[0] * hsize[1] * CCTK_VarTypeSize (htype); assert (total_hsize >= 0); if (total_hsize <= 0) { |