From 9edb76f49f5032758e6d132fd9ad6d736d9efcde Mon Sep 17 00:00:00 2001 From: avatar Date: Thu, 16 Jun 2011 15:35:12 +0000 Subject: Using the correct format string(%zu) for size_t type. This should fix 64 bits builds. Submitted by: Garrett Cooper --- lib/libstand/zalloc_malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libstand/zalloc_malloc.c') diff --git a/lib/libstand/zalloc_malloc.c b/lib/libstand/zalloc_malloc.c index cdacf13..5cd7bcb 100644 --- a/lib/libstand/zalloc_malloc.c +++ b/lib/libstand/zalloc_malloc.c @@ -110,7 +110,7 @@ Free(void *ptr, const char *file, int line) return; } if (*((signed char *)res + res->ga_Bytes - 1) != -2) - panic("free: guard2 fail @ %p + %d from %s:%d", ptr, res->ga_Bytes - MALLOCALIGN, file, line); + panic("free: guard2 fail @ %p + %zu from %s:%d", ptr, res->ga_Bytes - MALLOCALIGN, file, line); *((signed char *)res + res->ga_Bytes - 1) = -1; #endif -- cgit v1.1