From: Lennart Poettering Date: Thu, 23 Apr 2020 11:46:10 +0000 (+0200) Subject: home: fix strv NUL termination X-Git-Tag: v246-rc1~507 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=113a51d22139ecb8d60163ec1a5bf05016cfeb77;p=thirdparty%2Fsystemd.git home: fix strv NUL termination Fixes: #15559 --- diff --git a/src/home/pwquality-util.c b/src/home/pwquality-util.c index 5863a229b80..fbf6f6c8cc9 100644 --- a/src/home/pwquality-util.c +++ b/src/home/pwquality-util.c @@ -148,7 +148,7 @@ int suggest_passwords(void) { pwquality_maybe_disable_dictionary(pwq); - suggestions = new0(char*, N_SUGGESTIONS); + suggestions = new0(char*, N_SUGGESTIONS+1); if (!suggestions) return log_oom();