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/hostname | |
parent | nss-myhostname: simplify array building a bit (diff) | |
download | systemd-c2142cf1d1276f4f220bdd9af4ff7a716cc7a305.tar.xz systemd-c2142cf1d1276f4f220bdd9af4ff7a716cc7a305.zip |
hostnamed: make use of in_charset() to verify charset
Diffstat (limited to 'src/hostname')
-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) { |