From 5d19eba09b78c5b6cbbce8baeb24ef66275098d3 Mon Sep 17 00:00:00 2001 From: m0zart89 Date: Mon, 21 Dec 2015 15:59:42 +0200 Subject: [PATCH] Update Client.c Bug --- src/Cedar/Client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cedar/Client.c b/src/Cedar/Client.c index 6e95df27..618bb6eb 100644 --- a/src/Cedar/Client.c +++ b/src/Cedar/Client.c @@ -10173,7 +10173,7 @@ BUF *EncryptPassword(char *password) size = StrLen(password) + 1; tmp = ZeroMalloc(size); - c = NewCrypt(key, sizeof(key)); + c = NewCrypt(key, strlen(key)); Encrypt(c, tmp, password, size - 1); FreeCrypt(c);