From da5ed80a50eaa2872d048899fd2af4999a88e5bc Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sun, 25 Feb 2007 09:04:06 +0000 Subject: [PATCH] r21530: Don't code with jet-lag and Volker looking over your shoulder.... Correct fix for warning :-) Jeremy. --- source/nsswitch/winbindd_cred_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/nsswitch/winbindd_cred_cache.c b/source/nsswitch/winbindd_cred_cache.c index e061f150b4f..84c844a9dae 100644 --- a/source/nsswitch/winbindd_cred_cache.c +++ b/source/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; -- 2.34.1