mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
test/link/glibc_compat: fix incorrect strlcpy result
This commit is contained in:
parent
ad63be7eb9
commit
6c482b8033
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue