1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 03:25:31 +03:00

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);
suggestions = new0(char*, N_SUGGESTIONS);
suggestions = new0(char*, N_SUGGESTIONS+1);
if (!suggestions)
return log_oom();