From 89477b37e4b679da49c9c578fdbb7690211f06a8 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Fri, 5 Nov 2010 16:17:19 +0000 Subject: Fix wild pointers with pm_mallocarray2() of an array in fragmented format git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1360 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/util/mallocvar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/util') diff --git a/lib/util/mallocvar.c b/lib/util/mallocvar.c index 554030ad..05e2d4c4 100644 --- a/lib/util/mallocvar.c +++ b/lib/util/mallocvar.c @@ -134,7 +134,7 @@ pm_mallocarray2(void ** const resultP, */ rowIndex[rows+1] = NULL; /* Declare it fragmented format */ - allocarrayNoHeap(rowIndex, cols, rows, elementSize, &failed); + allocarrayNoHeap(rowIndex, rows, cols, elementSize, &failed); } rowIndex[rows+0] = NULL; /* mark end of rows */ } -- cgit 1.4.1