std: Fix C-string with missing NUL terminator

Spotted thanks to the stricter conversion rules.
This commit is contained in:
LemonBoy
2020-09-01 18:45:35 +02:00
parent c51b871c45
commit dd4994a4e4

View File

@@ -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();