hostnamed: make use of in_charset() to verify charset

This commit is contained in:
Lennart Poettering 2014-07-11 15:37:11 +02:00
parent d4c9895d93
commit c2142cf1d1
1 changed files with 1 additions and 1 deletions

View File

@ -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) {