diff options
-rw-r--r-- | lib/util/mallocvar.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/mallocvar.h b/lib/util/mallocvar.h index a97b5a00..9e111803 100644 --- a/lib/util/mallocvar.h +++ b/lib/util/mallocvar.h @@ -109,12 +109,12 @@ do { \ #define MALLOCARRAY2(arrayName, nRows, nCols, elementSz) do { \ void * array; \ - mallocarray2(&array, nRows, nCols, sizeof(arrayName[0][0])); \ + pm_mallocarray2(&array, nRows, nCols, sizeof(arrayName[0][0])); \ arrayName = array; \ } while (0) #define MALLOCARRAY2_NOFAIL(arrayName, nRows, nCols, elementSz) do { \ - MALLOCARRAY_NOFAIL(arrayName, nRows, nCols, elementSz); \ + MALLOCARRAY2(arrayName, nRows, nCols, elementSz); \ if ((arrayName) == NULL) \ abort(); \ } while (0) |