npm

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/npm
Log | Files | Refs

commit 62492ddf40952b099fceff1f22ebc8821104fa39
parent cf73838061df78f57f68f466c0b8dcbad1080abd
Author: Nihal Jere <nihal@nihaljere.xyz>
Date:   Tue, 16 Mar 2021 15:06:46 -0500

password adding fixup

Diffstat:
Mnpwm.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/npwm.c b/npwm.c @@ -73,12 +73,12 @@ getpassphrase(char *buf) if (tcsetattr(STDIN_FILENO, TCSANOW, &old) == -1) return -1; - putchar('\n'); + putc('\n', stderr); } if ((c = strchr(buf, '\n')) == NULL) die("passphrase too long"); - c = '\0'; + *c = '\0'; } int main(int argc, char *argv[]) {