diff options
author | avatar <avatar@FreeBSD.org> | 2011-06-16 15:35:12 +0000 |
---|---|---|
committer | avatar <avatar@FreeBSD.org> | 2011-06-16 15:35:12 +0000 |
commit | 9edb76f49f5032758e6d132fd9ad6d736d9efcde (patch) | |
tree | 773b744a24d47f6ce5bdc2f9ed00e50c8cd95828 /lib/libstand | |
parent | 3fa3d79859a39abcc58ffec875f572bc4a3f5949 (diff) | |
download | FreeBSD-src-9edb76f49f5032758e6d132fd9ad6d736d9efcde.zip FreeBSD-src-9edb76f49f5032758e6d132fd9ad6d736d9efcde.tar.gz |
Using the correct format string(%zu) for size_t type. This should fix 64
bits builds.
Submitted by: Garrett Cooper <yanegomi@gmail.com>
Diffstat (limited to 'lib/libstand')
-rw-r--r-- | lib/libstand/zalloc_malloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |