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
1 changed files with 1 additions and 1 deletions

View File

@ -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();