From a9bd141b4a144d8da062f9f8fa13869bba0c7bce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 28 Feb 2011 11:25:53 +0100 Subject: [PATCH] systemctl: always null-terminate the password --- src/ask-password-api.c | 2 -- 1 file changed, 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))) {