aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/format.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-22 18:59:42 +0100
committerMax Kellermann <max@duempel.org>2015-01-22 18:59:42 +0100
commit6725c2afa13c47c4a0f713e61cc19361fd6d1186 (patch)
treedf91ffa070268e743eef22d5c879a04bbdc32615 /src/util/format.c
parente9d4b73cc3ab03c9a2fa40d8a11a2351227ef044 (diff)
downloadmpd-6725c2afa13c47c4a0f713e61cc19361fd6d1186.tar.gz
mpd-6725c2afa13c47c4a0f713e61cc19361fd6d1186.tar.xz
mpd-6725c2afa13c47c4a0f713e61cc19361fd6d1186.zip
util/format: allow upper case, digits and underscore in names
Diffstat (limited to 'src/util/format.c')
-rw-r--r--src/util/format.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/format.c b/src/util/format.c
index 250bdd7ea..66243c8ec 100644
--- a/src/util/format.c
+++ b/src/util/format.c
@@ -74,7 +74,8 @@ skip_format(const char *p)
static bool
is_name_char(char ch)
{
- return ch >= 'a' && ch <= 'z';
+ return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') ||
+ (ch >= '0' && ch <= '9') || ch == '_';
}
static char *