Fixed buffer overflow regarding the audio capture.