diff options
Diffstat (limited to '')
-rw-r--r-- | src/volume.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/volume.c b/src/volume.c index fedccfd7e..2603aeede 100644 --- a/src/volume.c +++ b/src/volume.c @@ -522,9 +522,11 @@ void read_sw_volume_state(FILE *fp) if (volume_mixerType != VOLUME_MIXER_TYPE_SOFTWARE) return; - while (myFgets(buf, sizeof(buf), fp)) { + while (fgets(buf, sizeof(buf), fp)) { if (!g_str_has_prefix(buf, SW_VOLUME_STATE)) continue; + + g_strchomp(buf); sv = strtol(buf + strlen(SW_VOLUME_STATE), &end, 10); if (G_LIKELY(!*end)) changeSoftwareVolume(sv, 0); |