conf: remove trailing whitespace from option names
authorMax Kellermann <max@musicpd.org>
Wed, 10 Oct 2018 13:47:45 +0000 (15:47 +0200)
committerMax Kellermann <max@musicpd.org>
Wed, 10 Oct 2018 13:47:45 +0000 (15:47 +0200)
Closes #39

NEWS
src/conf.cxx

diff --git a/NEWS b/NEWS
index f33506a..e79f8a2 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
 ncmpc 0.33 - not yet released
+* fix color configuration parser bug
 * fix build failure when libpcre is not found
 * remove support for liblircclient (only liblirc)
 * build: require Meson 0.47
index d4c94a7..da8c163 100644 (file)
@@ -236,7 +236,7 @@ separate_value(char *p)
                return nullptr;
        }
 
-       *value++ = 0;
+       *StripRight(p, value++) = '\0';
 
        return Strip(value);
 }