From 497f37ce92ba13aa609acce23135fd6b06ed410f Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 29 Apr 2024 11:50:46 +1000 Subject: [PATCH] test/link/glibc_compat: fix incorrect strlcpy result --- test/link/glibc_compat/glibc_runtime_check.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/link/glibc_compat/glibc_runtime_check.zig b/test/link/glibc_compat/glibc_runtime_check.zig index 3dc1548379..5a925d8583 100644 --- a/test/link/glibc_compat/glibc_runtime_check.zig +++ b/test/link/glibc_compat/glibc_runtime_check.zig @@ -91,7 +91,7 @@ fn checkStrlcpy() !void { fn checkStrlcpy_v2_38() !void { var buf: [99]u8 = undefined; const used = c_string.strlcpy(&buf, "strlcpy works!", buf.len); - assert(used == 15); + assert(used == 14); } // atexit is part of libc_nonshared, so ensure its linked in correctly