diff options
author | Max Kellermann <max@duempel.org> | 2008-12-28 19:54:49 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-28 19:54:49 +0100 |
commit | 859aac7242fe3767c19c1bfff73d5e6159cbad31 (patch) | |
tree | 2e433f6ec1a820d99ad171ffd6a49a6828ddd0e4 /src/audio.c | |
parent | 2598cdd86814c7792a431470a9143d609399697b (diff) | |
download | mpd-859aac7242fe3767c19c1bfff73d5e6159cbad31.tar.gz mpd-859aac7242fe3767c19c1bfff73d5e6159cbad31.tar.xz mpd-859aac7242fe3767c19c1bfff73d5e6159cbad31.zip |
utils: removed myFgets()
Replaced myFgets() with fgets() + g_strchomp().
Diffstat (limited to 'src/audio.c')
-rw-r--r-- | src/audio.c | 4 |
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; |