mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 22:09:49 +00:00
std: Fix C-string with missing NUL terminator
Spotted thanks to the stricter conversion rules.
This commit is contained in:
parent
c51b871c45
commit
dd4994a4e4
@ -1164,7 +1164,7 @@ fn linuxLookupNameFromDnsSearch(
|
||||
}
|
||||
|
||||
const search = if (rc.search.isNull() or dots >= rc.ndots or mem.endsWith(u8, name, "."))
|
||||
&[_]u8{}
|
||||
""
|
||||
else
|
||||
rc.search.span();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user