chiark / gitweb /
hostnamed: allow UTF8 chars in pretty hostname again
[elogind.git] / src / shared / util.c
index 50c4c08993e30f351ad1f2ffa1156564468a0297..1c97a8a94ae65386b7731c672e4e1248d7f65826 100644 (file)
@@ -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))