diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-11 15:37:11 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-11 15:37:11 +0200 |
commit | c2142cf1d1276f4f220bdd9af4ff7a716cc7a305 (patch) | |
tree | 1b0ea96055a7f8a8a872b86363ced67517edff75 /src | |
parent | d4c9895d93700d20b7d092244a278009789d8e74 (diff) |
hostnamed: make use of in_charset() to verify charset
Diffstat (limited to 'src')
-rw-r--r-- | src/hostname/hostnamed.c | 2 |
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) { |