diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-03-19 15:09:52 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-03-19 15:09:52 -0400 |
| commit | 6b6f2fcf96b0d8493be45b484226ea8ae9a83a88 (patch) | |
| tree | 894506cf3bf87d9ca08b95cd245fd9e71ccf8ce1 /lib/std | |
| parent | f614d94faa3b2a259c3a82cd66f167029f20d224 (diff) | |
| download | zig-6b6f2fcf96b0d8493be45b484226ea8ae9a83a88.tar.gz zig-6b6f2fcf96b0d8493be45b484226ea8ae9a83a88.zip | |
std.net: remove the hack from earlier in the branch
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/net.zig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/std/net.zig b/lib/std/net.zig index 44efc4644a..b9c1281191 100644 --- a/lib/std/net.zig +++ b/lib/std/net.zig @@ -957,8 +957,10 @@ fn linuxLookupNameFromDns( } } - var hack: usize = 0; // TODO remove this hack - var ap = [2][]u8{ apbuf[0][0..hack], apbuf[1][0..hack] }; + var ap = [2][]u8{ apbuf[0], apbuf[1] }; + ap[0].len = 0; + ap[1].len = 0; + try resMSendRc(qp[0..nq], ap[0..nq], apbuf[0..nq], rc); var i: usize = 0; |
