aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-26 16:03:53 +0200
committerMax Kellermann <max@duempel.org>2013-10-26 16:04:06 +0200
commitfb7513754027dd59b89955c21c7ab19653ba466e (patch)
treeb8822e8feb094f90262c5a03900d48a3ce225632 /src/command
parent6f87164ad6027246b595bfe072aa0d7a40f949cb (diff)
downloadmpd-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/command')
-rw-r--r--src/command/FileCommands.cxx2
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;
}