Skip to content

Commit fe59bdb

Browse files
committed
Fix TRACE level log crash due to %zu formatter
Reported-by: WingTecher Team
1 parent 02051d3 commit fe59bdb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/sqlcipher.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,7 @@ void *sqlcipher_malloc(sqlite3_uint64 size) {
12381238
}
12391239
private_heap_alloc += alloc_sz;
12401240
private_heap_allocs++;
1241-
sqlcipher_log(SQLCIPHER_LOG_TRACE, SQLCIPHER_LOG_MEMORY, "%s allocated %llu bytes (%zu used) on private heap at %p", __func__, size, alloc_sz, alloc);
1241+
sqlcipher_log(SQLCIPHER_LOG_TRACE, SQLCIPHER_LOG_MEMORY, "%s allocated %llu bytes (%u used) on private heap at %p", __func__, size, alloc_sz, alloc);
12421242
}
12431243

12441244
sqlcipher_log(SQLCIPHER_LOG_TRACE, SQLCIPHER_LOG_MUTEX, "%s: leaving SQLCIPHER_MUTEX_MEM", __func__);

0 commit comments

Comments
 (0)