summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-09-25 17:44:58 +0200
committerLars-Dominik Braun <lars@6xq.net>2015-09-25 17:52:33 +0200
commit9dbd0f308b10f6a2982e72f25b0d26c951f5e87f (patch)
tree419e6f5d29449478ea869298c94fae66f6f458e1 /contrib
parent77ffe368e9b5045a801360c563623d5bc1c78771 (diff)
downloadpianobar-9dbd0f308b10f6a2982e72f25b0d26c951f5e87f.tar.gz
pianobar-9dbd0f308b10f6a2982e72f25b0d26c951f5e87f.tar.bz2
pianobar-9dbd0f308b10f6a2982e72f25b0d26c951f5e87f.zip
settings: Fix config file parser
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.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/pianobar.14
1 files changed, 1 insertions, 3 deletions
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