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);