Relax overly strict comparison

This commit is contained in:
Andrea Mazzoleni 2026-05-21 00:05:23 +02:00
parent 4259a16931
commit 7680144e15

View file

@ -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();