commit 6c482b80339dbf23cb971739d13dccbd04bc89df (tree)
parent ad63be7eb92d17f2d8d8cc8ec606293813c05deb
Author: daurnimator <quae@daurnimator.com>
Date: Mon, 29 Apr 2024 11:50:46 +1000
test/link/glibc_compat: fix incorrect strlcpy result
Diffstat:
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
@@ -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