Index: trunk/psLib/src/fft/psImageFFT.c
===================================================================
--- trunk/psLib/src/fft/psImageFFT.c	(revision 29592)
+++ trunk/psLib/src/fft/psImageFFT.c	(revision 33955)
@@ -77,6 +77,6 @@
         input = psMemIncrRefCounter(in->p_rawDataBuffer);
     } else {
-        // Need to copy the data
-        input = psAlloc(numCols * numRows);
+	// Need to copy the data
+	input = psAlloc(numCols * numRows * PSELEMTYPE_SIZEOF(PS_TYPE_F32));
         for (int y = 0; y < numRows; y++) {
             memcpy(&input[y * numRows], in->data.F32[y], numCols);
