authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2024-04-29 11:50:46+10:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-04-28 22:03:08-07:00
log497f37ce92ba13aa609acce23135fd6b06ed410f
tree752dba27271486536c5e6cc9ba7f56ca09e7aea1
parent4303400e47a0c15f7719c2e009f74dec5468a638

test/link/glibc_compat: fix incorrect strlcpy result


1 files changed, 1 insertions(+), 1 deletions(-)

test/link/glibc_compat/glibc_runtime_check.zig+1-1
...@@ -91,7 +91,7 @@ fn checkStrlcpy() !void {...@@ -91,7 +91,7 @@ fn checkStrlcpy() !void {
91fn checkStrlcpy_v2_38() !void {91fn checkStrlcpy_v2_38() !void {
92 var buf: [99]u8 = undefined;92 var buf: [99]u8 = undefined;
93 const used = c_string.strlcpy(&buf, "strlcpy works!", buf.len);93 const used = c_string.strlcpy(&buf, "strlcpy works!", buf.len);
94 assert(used == 15);94 assert(used == 14);
95}95}
9696
97// atexit is part of libc_nonshared, so ensure its linked in correctly97// atexit is part of libc_nonshared, so ensure its linked in correctly