diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2011-02-28 11:25:53 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-02-28 22:17:36 +0100 |
commit | a9bd141b4a144d8da062f9f8fa13869bba0c7bce (patch) | |
tree | 824c8369f9c7bc64f45222c6f5c078fcb0d66da5 | |
parent | 53bdb7c186cc83fdbd2eb71677c18c26954fbec9 (diff) |
systemctl: always null-terminate the password
-rw-r--r-- | src/ask-password-api.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ask-password-api.c b/src/ask-password-api.c index dd54fb6abf..af1b611f27 100644 --- a/src/ask-password-api.c +++ b/src/ask-password-api.c @@ -179,8 +179,6 @@ int ask_password_tty( } } - if (ttyfd >= 0) - passphrase[p] = 0; if (!(*_passphrase = strdup(passphrase))) { |