summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-10-17 21:24:14 +0200
committerLennart Poettering <lennart@poettering.net>2012-10-17 21:25:42 +0200
commit01539d6ef9689ffdc7c0743e12740a78bb938b97 (patch)
tree67da26110d2042d24696808b2593becbe41b8707 /src
parent4fa25d62bd586b56fa6a30009f41ce6dbc5fdd54 (diff)
hostnamed: allow UTF8 chars in pretty hostname again
Diffstat (limited to 'src')
-rw-r--r--src/shared/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index 50c4c08993..1c97a8a94a 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -5929,7 +5929,7 @@ bool string_is_safe(const char *p) {
assert(p);
for (t = p; *t; t++) {
- if (*t < ' ')
+ if (*t > 0 && *t < ' ')
return false;
if (strchr("\\\"\'", *t))