From 7680144e1557931e7c7cec74caff491dcaea1d82 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Thu, 21 May 2026 00:05:23 +0200 Subject: [PATCH] Relax overly strict comparison --- cmdline/support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdline/support.c b/cmdline/support.c index fd30cfbb..dee7ae14 100644 --- a/cmdline/support.c +++ b/cmdline/support.c @@ -1097,7 +1097,7 @@ void pathslash(char* dst, size_t size) size_t len = strlen(dst); if (len > 0 && dst[len - 1] != '/') { - if (len + 2 >= size) { + if (len + 2 > size) { /* LCOV_EXCL_START */ log_fatal(EINTERNAL, "Path too long '%s/'\n", dst); os_abort();