authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-09-01 18:45:35+02:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-09-01 18:45:35+02:00
logdd4994a4e4379454f6b58779276f1b6aa9ed6e1b
tree5e3c2380c059b629f2ad22ea1e38c85ec612d5c2
parentc51b871c4516003e8d2c84e7e1c36124c3797f5c

std: Fix C-string with missing NUL terminator

Spotted thanks to the stricter conversion rules.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/net.zig+1-1
......@@ -1164,7 +1164,7 @@ fn linuxLookupNameFromDnsSearch(
11641164 }
11651165
11661166 const search = if (rc.search.isNull() or dots >= rc.ndots or mem.endsWith(u8, name, "."))
1167 &[_]u8{}
1167 ""
11681168 else
11691169 rc.search.span();
11701170