std: Fix C-string with missing NUL terminator
Spotted thanks to the stricter conversion rules.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user