diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2016-09-02 18:06:44 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2016-09-02 18:06:44 +0000 |
commit | dc2535bc7e2ed20c8f1e9c852fcdd0bad7a48e48 (patch) | |
tree | e2a460ab86c4ed4c951d65d9d342b27130187044 /usr.bin/encrypt | |
parent | 117031a6a4411cb2d471149ff41d34a6efae82a9 (diff) |
_PASSWORD_LEN is length that comes out of crypt(), not a meaningful
length for user entered passwords. And the +1 is just superstitious
nonsense inherited from getpass() guts.
Switch to a pleasing fixed size of 1024.
ok millert
Diffstat (limited to 'usr.bin/encrypt')
-rw-r--r-- | usr.bin/encrypt/encrypt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/encrypt/encrypt.c b/usr.bin/encrypt/encrypt.c index 4ded29d4c1a..e9c549dcf92 100644 --- a/usr.bin/encrypt/encrypt.c +++ b/usr.bin/encrypt/encrypt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: encrypt.c,v 1.43 2016/09/02 17:06:59 tedu Exp $ */ +/* $OpenBSD: encrypt.c,v 1.44 2016/09/02 18:06:43 tedu Exp $ */ /* * Copyright (c) 1996, Jason Downs. All rights reserved. @@ -125,7 +125,7 @@ main(int argc, char **argv) if (((argc - optind) < 1)) { char line[BUFSIZ]; - char string[_PASSWORD_LEN + 1]; + char string[1024]; if (prompt) { if (readpassphrase("Enter string: ", string, |