From ba2467d5121a285e47df58d9f8fdc4e64d7fdc19 Mon Sep 17 00:00:00 2001 From: Stephen Lombardo Date: Mon, 29 Oct 2018 18:31:04 -0400 Subject: [PATCH] fix error in memory hook codec trace --- src/crypto_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto_impl.c b/src/crypto_impl.c index 3b8475c7..e334e69d 100644 --- a/src/crypto_impl.c +++ b/src/crypto_impl.c @@ -108,7 +108,7 @@ static void sqlcipher_mem_shutdown(void *pAppData) { static void *sqlcipher_mem_malloc(int n) { void *ptr = default_mem_methods.xMalloc(n); if(mem_security_on) { - CODEC_TRACE("sqlcipher_mem_malloc: calling sqlcipher_mlock(%p,%d)\n", ptr, sz); + CODEC_TRACE("sqlcipher_mem_malloc: calling sqlcipher_mlock(%p,%d)\n", ptr, n); sqlcipher_mlock(ptr, n); if(!mem_security_activated) mem_security_activated = 1; }