From c1e91d99771fb9d6c46f34b8a68ec645998812d6 Mon Sep 17 00:00:00 2001 From: c vw Date: Sun, 13 Sep 2020 16:40:13 +0200 Subject: [PATCH] Do not overflow local microphone name buffer. --- audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio.c b/audio.c index 3c4581a..931bb14 100644 --- a/audio.c +++ b/audio.c @@ -182,7 +182,7 @@ g_print("audio_open_input: %s\n",transmitter->microphone_name); g_print("audio_open_input: mic_buffer_size=%d\n",mic_buffer_size); i=0; - while(transmitter->microphone_name[i]!=' ') { + while(i<63 && transmitter->microphone_name[i]!=' ') { hw[i]=transmitter->microphone_name[i]; i++; } -- 2.45.2