From 76ffe6a90b284ab54a6f926ce0f1a299d9fac61b Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Wed, 4 Feb 2026 10:35:45 -0500 Subject: format string bug --- map.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/map.c b/map.c index 99c2c6f..d46a408 100644 --- a/map.c +++ b/map.c @@ -38,7 +38,8 @@ void map_init_capacity( map->__buckets = calloc(map->__num_buckets, sizeof(struct __map_entry*)); if (map->__buckets == NULL) - crash("Out of memory allocating %ld hash buckets\n"); + crash( + "Out of memory allocating %ld hash buckets\n", map->__num_buckets); } void map_destroy(map_t* map) { -- cgit v1.2.3