From e1506e043397bea0092012e647d0637148cf76fd Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Wed, 7 Jan 2026 11:17:36 +0100 Subject: [PATCH] fix wrong allocation (array of of double* instead of array of double) --- src/save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/save.c b/src/save.c index 23f50c38..f81e5533 100644 --- a/src/save.c +++ b/src/save.c @@ -487,7 +487,7 @@ static void read_raw_data_block(int binary, FILE *fd, Raw *raw, int ac) /* we store 4 variables (mag, phase, real and imag) but raw file has only real and imag */ if(ac) rawvars >>= 1; /* read buffer */ - tmp = my_calloc(_ALLOC_ID_, rawvars, (sizeof(double *) )); + tmp = my_calloc(_ALLOC_ID_, rawvars, (sizeof(double) )); /* if sweep1 and sweep2 are given calculate actual npoints that will be loaded */ npoints = raw->npoints[raw->datasets];