diff options
author | Max Kellermann <max@duempel.org> | 2013-10-26 16:03:53 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-26 16:04:06 +0200 |
commit | fb7513754027dd59b89955c21c7ab19653ba466e (patch) | |
tree | b8822e8feb094f90262c5a03900d48a3ce225632 /src | |
parent | 6f87164ad6027246b595bfe072aa0d7a40f949cb (diff) | |
download | mpd-fb7513754027dd59b89955c21c7ab19653ba466e.tar.gz mpd-fb7513754027dd59b89955c21c7ab19653ba466e.tar.xz mpd-fb7513754027dd59b89955c21c7ab19653ba466e.zip |
FileCommands: fix wrong control character check in IsValidValue()
Check was the wrong way around, and made all valid values invisible.
Diffstat (limited to 'src')
-rw-r--r-- | src/command/FileCommands.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/FileCommands.cxx b/src/command/FileCommands.cxx index 8c5bbc50f..9df5b8b58 100644 --- a/src/command/FileCommands.cxx +++ b/src/command/FileCommands.cxx @@ -56,7 +56,7 @@ IsValidValue(const char *p) while (*p) { const char ch = *p++; - if ((unsigned char)ch >= 0x20) + if ((unsigned char)ch < 0x20) return false; } |