Skip to content

Commit 6b6f2fc

Browse files
committed
std.net: remove the hack from earlier in the branch
1 parent f614d94 commit 6b6f2fc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/std/net.zig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -957,8 +957,10 @@ fn linuxLookupNameFromDns(
957957
}
958958
}
959959

960-
var hack: usize = 0; // TODO remove this hack
961-
var ap = [2][]u8{ apbuf[0][0..hack], apbuf[1][0..hack] };
960+
var ap = [2][]u8{ apbuf[0], apbuf[1] };
961+
ap[0].len = 0;
962+
ap[1].len = 0;
963+
962964
try resMSendRc(qp[0..nq], ap[0..nq], apbuf[0..nq], rc);
963965

964966
var i: usize = 0;

0 commit comments

Comments
 (0)