iir_parse_n(): fix silly bug

Fixed a silly bug that caused iir_parse_n() to fail for n>1.
This commit is contained in:
Laurence Withers 2011-04-15 18:05:37 +00:00
parent bc383a92da
commit 4c0680fb02
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ iir_parse_n(const char* desc, int n)
a = malloc(sizeof(struct iir_filter_t*) * n);
a[0] = fi;
for(i = 1; i < n; ++i) a[n] = iir_filter_copy(fi, 0);
for(i = 1; i < n; ++i) a[i] = iir_filter_copy(fi, 0);
return a;
}