Commit dd4994a4e4

LemonBoy <thatlemon@gmail.com>
2020-09-01 18:45:35
std: Fix C-string with missing NUL terminator
Spotted thanks to the stricter conversion rules.
1 parent c51b871
Changed files (1)
lib
lib/std/net.zig
@@ -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();