From: Zbigniew Jędrzejewski-Szmek Date: Mon, 28 Feb 2011 10:25:53 +0000 (+0100) Subject: systemctl: always null-terminate the password X-Git-Tag: v19~5 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=a9bd141b4a144d8da062f9f8fa13869bba0c7bce;p=elogind.git systemctl: always null-terminate the password --- diff --git a/src/ask-password-api.c b/src/ask-password-api.c index dd54fb6ab..af1b611f2 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))) {