From 3f3a3a23ceadb954a7bc2cb42da131d11be6af19 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sun, 25 Feb 2007 09:04:06 +0000 Subject: r21530: Don't code with jet-lag and Volker looking over your shoulder.... Correct fix for warning :-) Jeremy. (This used to be commit 773001870d22ef4ff7ec00f73661b59a63cade42) --- source3/nsswitch/winbindd_cred_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/nsswitch/winbindd_cred_cache.c b/source3/nsswitch/winbindd_cred_cache.c index e061f150b4..84c844a9da 100644 --- a/source3/nsswitch/winbindd_cred_cache.c +++ b/source3/nsswitch/winbindd_cred_cache.c @@ -484,7 +484,7 @@ static NTSTATUS store_memory_creds(struct WINBINDD_MEMORY_CREDS *memcredp, const /* On non-linux platforms, mlock()'d memory must be aligned */ - memcredp->nt_hash = (unsigned char *)SMB_MEMALIGN_ARRAY(unsigned char*, psize, + memcredp->nt_hash = SMB_MEMALIGN_ARRAY(unsigned char, psize, memcredp->len); if (!memcredp->nt_hash) { return NT_STATUS_NO_MEMORY; -- cgit