summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarson Fleming <[email protected]>2026-02-04 10:35:45 -0500
committerCarson Fleming <[email protected]>2026-02-04 10:35:45 -0500
commit76ffe6a90b284ab54a6f926ce0f1a299d9fac61b (patch)
tree8dc59175dfe513a89724fa70e86898132099e487
parent85d71d02763b3128689c5d880b4d3c6a99b06ff4 (diff)
downloadsafec-76ffe6a90b284ab54a6f926ce0f1a299d9fac61b.tar.gz
format string bug
-rw-r--r--map.c3
1 files changed, 2 insertions, 1 deletions
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) {