summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hostname/hostnamed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c
index 19ab500533..d826a31da9 100644
--- a/src/hostname/hostnamed.c
+++ b/src/hostname/hostnamed.c
@@ -155,7 +155,7 @@ static bool valid_chassis(const char *chassis) {
static bool valid_deployment(const char *deployment) {
assert(deployment);
- return strspn(deployment, VALID_DEPLOYMENT_CHARS) == strlen(deployment);
+ return in_charset(deployment, VALID_DEPLOYMENT_CHARS);
}
static const char* fallback_chassis(void) {