summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfgsch <fgsch@openbsd.org>2000-06-19 21:23:44 +0000
committerfgsch <fgsch@openbsd.org>2000-06-19 21:23:44 +0000
commitf43ed9aab0c0337dc5b563146553b2abd22f79b8 (patch)
tree54623b4f4f57897d3848d6a089ede554b966cb67
parentremove unused var (diff)
downloadwireguard-openbsd-f43ed9aab0c0337dc5b563146553b2abd22f79b8.tar.xz
wireguard-openbsd-f43ed9aab0c0337dc5b563146553b2abd22f79b8.zip
pass the correct size of the buffer
-rw-r--r--usr.bin/tcfs/tcfsaddgroup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tcfs/tcfsaddgroup.c b/usr.bin/tcfs/tcfsaddgroup.c
index c0ae96a1fa4..6761b0c81c2 100644
--- a/usr.bin/tcfs/tcfsaddgroup.c
+++ b/usr.bin/tcfs/tcfsaddgroup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcfsaddgroup.c,v 1.6 2000/06/19 20:50:58 fgsch Exp $ */
+/* $OpenBSD: tcfsaddgroup.c,v 1.7 2000/06/19 21:23:44 fgsch Exp $ */
/*
* Transparent Cryptographic File System (TCFS) for NetBSD
@@ -357,7 +357,7 @@ addgroup_main (int argn, char *argv[])
* Encrypt the just generated key with the user password
*/
if (!tcfs_encrypt_key (passwd, newkey, GKEYSIZE,
- cryptedkey, GROUPKEY))
+ cryptedkey, UUGKEYSIZE))
tcfs_error (ER_MEM, NULL);
free (newkey);