From 2bb871a3a6ca4b73e8583de4de97f7b55dd1614c Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 28 Apr 2006 11:58:21 +0000 Subject: [PATCH] Fix a possible segfault. --- pitch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pitch.cpp b/pitch.cpp index 97238f5..c8246dc 100644 --- a/pitch.cpp +++ b/pitch.cpp @@ -46,7 +46,7 @@ int main() in = reinterpret_cast (fftw_malloc(sizeof(double) * FFT_LENGTH / PAD_FACTOR)); in_windowed = reinterpret_cast (fftw_malloc(sizeof(double) * FFT_LENGTH)); out = reinterpret_cast *> (fftw_malloc(sizeof(std::complex) * (FFT_LENGTH / 2 + 1))); - bins = reinterpret_cast (fftw_malloc(sizeof(double) * FFT_LENGTH / 2 + 1)); + bins = reinterpret_cast (fftw_malloc(sizeof(double) * (FFT_LENGTH / 2 + 1))); memset(in, 0, sizeof(double) * FFT_LENGTH / PAD_FACTOR); -- 2.39.2