From 9dbd0f308b10f6a2982e72f25b0d26c951f5e87f Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Fri, 25 Sep 2015 17:44:58 +0200 Subject: settings: Fix config file parser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit scanf’s %s matches non-whitespace characters only and thus ‘# foo = bar’ is parsed as ‘foo’, ‘bar’ and not ‘# foo’, ‘bar’ (as expected). Thus comments did not work if they a) started with a valid key and b) had a space between hash-sign and key. Fixes issue #526. --- contrib/pianobar.1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'contrib') diff --git a/contrib/pianobar.1 b/contrib/pianobar.1 index ee09c41..375ec47 100644 --- a/contrib/pianobar.1 +++ b/contrib/pianobar.1 @@ -37,9 +37,7 @@ http://xiph.org/ao/doc/config.html .SH CONFIGURATION The configuration file consists of simple .B key = value -lines, each terminated with a newline (\\n) character. Note that keys and -values are both case sensitive, and there must be exactly one space on each -side of the equals sign. +lines, each terminated with a newline (\\n) character. Keys are case sensitive. act_* keys control .B pianobar's -- cgit v1.2.3