ref: cfddab93bb46d44d4d007bbcadac4e46d69b2be7
parent: cf894b14b1b9a8ac4fe42eb6c38b076b890f9e22
author: Paul Brossier <piem@piem.org>
date: Wed Oct 5 07:45:36 EDT 2016
src/io/source_wavread.c: initialize buffer
--- a/src/io/source_wavread.c
+++ b/src/io/source_wavread.c
@@ -76,7 +76,7 @@
aubio_source_wavread_t * new_aubio_source_wavread(const char_t * path, uint_t samplerate, uint_t hop_size) {
aubio_source_wavread_t * s = AUBIO_NEW(aubio_source_wavread_t);
size_t bytes_read = 0, bytes_junk = 0, bytes_expected = 44;
- unsigned char buf[5];
+ unsigned char buf[5] = "\0";
unsigned int format, channels, sr, byterate, blockalign, duration, bitspersample;//, data_size;
if (path == NULL) {