diff --git a/tests/grib_ecc-604-encode.c b/tests/grib_ecc-604-encode.c index 82e245457..bd9046469 100644 --- a/tests/grib_ecc-604-encode.c +++ b/tests/grib_ecc-604-encode.c @@ -19,12 +19,13 @@ int opt_write = 0; /* If 1 write handle to file */ static int encode_values(grib_handle* h, char *output_file) { double *values; - size_t size = 1000 * 1000; + const size_t DIM = 1000; + size_t size = DIM * DIM; size_t i = 0; values = (double*)malloc(size*sizeof(double)); for (i=0; i