From 99245c958d6077217e5e05749b0dd731b4e78d8e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 20 Feb 2026 00:04:28 -0500 Subject: Bugfix --- src/stdlib/paths.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdlib/paths.c b/src/stdlib/paths.c index cbd5e657..9d1fad9c 100644 --- a/src/stdlib/paths.c +++ b/src/stdlib/paths.c @@ -62,7 +62,7 @@ static void normalize_inplace(char path[PATH_MAX]) { *dest = '\0'; } else { // Otherwise copy over the component and any trailing slash or NUL - *(dest++) = '/'; + if (src > path || path[0] == '/') *(dest++) = '/'; memcpy(dest, src, component_len); dest += component_len; *dest = '\0'; -- cgit v1.2.3