projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18c3fb9
)
prevent overflow of mic device name buffer
author
c vw
<dl1ycf@darc.de>
Sun, 13 Sep 2020 14:37:43 +0000
(16:37 +0200)
committer
c vw
<dl1ycf@darc.de>
Sun, 13 Sep 2020 14:37:43 +0000
(16:37 +0200)
audio.c
patch
|
blob
|
history
diff --git
a/audio.c
b/audio.c
index e0ebe0382d82f2e16e04bb40651ddc6986d5a5e4..4ba256a2e78402ba956dfc423457355b25bd4884 100644
(file)
--- a/
audio.c
+++ b/
audio.c
@@
-183,7
+183,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++;
}