systemctl: always null-terminate the password

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2011-02-28 11:25:53 +01:00 committed by Lennart Poettering
parent 53bdb7c186
commit a9bd141b4a
1 changed files with 0 additions and 2 deletions

View File

@ -179,8 +179,6 @@ int ask_password_tty(
}
}
if (ttyfd >= 0)
passphrase[p] = 0;
if (!(*_passphrase = strdup(passphrase))) {