From f887ba7704c45ae471a321b4a0a709dc1f8a7b39 Mon Sep 17 00:00:00 2001 From: PatR Date: Wed, 16 Apr 2025 13:14:42 -0700 Subject: [PATCH] build fix for MONITOR_HEAP Compile of alloc.c failed when MONITOR_HEAP is defined. --- src/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alloc.c b/src/alloc.c index 72faa160b..158d03a55 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -221,7 +221,7 @@ nhdupstr(const char *string, const char *file, int line) /* we've got some info about the caller, so use it instead of __func__ */ unsigned len = FITSuint_(strlen(string), file, line); - if (FITSuint(len + 1, file, line) < len) + if (FITSuint_(len + 1, file, line) < len) panic("nhdupstr: string length overflow, line %d of %s", line, file);