Remove source of memory errors: read and write beyond boundaries

caused segfaults.
This commit is contained in:
Holger Vogt 2024-08-03 17:48:29 +02:00
parent de6efc0d8e
commit f9319bc6bd
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ void snd_init(int nchannel) {
sp_buf = calloc(nchannel, sizeof(SP_BUF));
for (i = 0; i < SP_MAX; i++) {
sp_buf[i].tme = 0.0;
sp_buf[i].val = calloc(nchannel, sizeof(float));
sp_buf[i].val = calloc(nchannel, sizeof(double));
}
sample = 0;
#ifdef HAVE_SRC