X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fhostname%2Fhostnamed.c;h=d826a31da96a3838a34a40a329b36d6ddd51a39b;hp=19ab500533696fb3d13a361218538a94ee8ed3a0;hb=c2142cf1d1276f4f220bdd9af4ff7a716cc7a305;hpb=d4c9895d93700d20b7d092244a278009789d8e74 diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index 19ab50053..d826a31da 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) {