From 0db6543682630587207cd14fb1de3db80412994a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Wed, 6 Oct 2010 13:51:30 +0200 Subject: [PATCH] [core] Fix missing parameter in crypt wrapper --- src/common/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utils.c b/src/common/utils.c index add0431..215aa87 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -982,7 +982,7 @@ void li_safe_crypt(GString *dest, const GString *password, const GString *salt) static GStaticMutex crypt_mutex = G_STATIC_MUTEX_INIT; g_static_mutex_lock(&crypt_mutex); - g_string_assign(crypt(password->str, salt->str)); + g_string_assign(dest, crypt(password->str, salt->str)); g_static_mutex_unlock(&crypt_mutex); #endif }