home: fix strv NUL termination

Fixes: #15559
This commit is contained in:
Lennart Poettering 2020-04-23 13:46:10 +02:00
parent 927cffd57f
commit 113a51d221

View file

@ -148,7 +148,7 @@ int suggest_passwords(void) {
pwquality_maybe_disable_dictionary(pwq); pwquality_maybe_disable_dictionary(pwq);
suggestions = new0(char*, N_SUGGESTIONS); suggestions = new0(char*, N_SUGGESTIONS+1);
if (!suggestions) if (!suggestions)
return log_oom(); return log_oom();