diff options
author | Anthony Blake <anthonix@me.com> | 2012-12-15 11:58:31 +1300 |
---|---|---|
committer | Anthony Blake <anthonix@me.com> | 2012-12-15 11:58:31 +1300 |
commit | 0a61891c85de1c26881ebc555dadbcebb9665417 (patch) | |
tree | 822e356d9f3b6437ec42342ff033016d15c96b81 /src | |
parent | e9e91bda5cb69014c156a0c3513fc0fb21c49bd7 (diff) | |
download | ffts-0a61891c85de1c26881ebc555dadbcebb9665417.zip ffts-0a61891c85de1c26881ebc555dadbcebb9665417.tar.gz |
Fixed incorrect memory allocation
Diffstat (limited to 'src')
-rw-r--r-- | src/ffts_real.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ffts_real.c b/src/ffts_real.c index 9d5bf84..bdb6eac 100644 --- a/src/ffts_real.c +++ b/src/ffts_real.c @@ -197,7 +197,7 @@ ffts_plan_t *ffts_init_1d_real(size_t N, int sign) { p->plans[0] = ffts_init_1d(N/2, sign); - p->buf = valloc(sizeof(float) * 2 * (N/2) + 1); + p->buf = valloc(sizeof(float) * 2 * ((N/2) + 1)); p->A = valloc(sizeof(float) * N); p->B = valloc(sizeof(float) * N); |