From fb7513754027dd59b89955c21c7ab19653ba466e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 26 Oct 2013 16:03:53 +0200 Subject: FileCommands: fix wrong control character check in IsValidValue() Check was the wrong way around, and made all valid values invisible. --- src/command/FileCommands.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3