aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio.c')
-rw-r--r--src/audio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c
index 402d6bc28..1fba0ace0 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -396,9 +396,11 @@ void readAudioDevicesState(FILE *fp)
assert(audioOutputArraySize != 0);
- while (myFgets(buffer, AUDIO_BUFFER_SIZE, fp)) {
+ while (fgets(buffer, sizeof(buffer), fp)) {
char *c, *name;
+ g_strchomp(buffer);
+
if (!g_str_has_prefix(buffer, AUDIO_DEVICE_STATE))
continue;