diff options
| author | dweiller <4678790+dweiller@users.noreplay.github.com> | 2023-05-02 22:08:54 +1000 |
|---|---|---|
| committer | dweiller <4678790+dweiller@users.noreplay.github.com> | 2023-05-07 15:55:21 +1000 |
| commit | bd3360e03d89fe947e3728ccacd4274653926376 (patch) | |
| tree | daf2107f394c94b41c55a6ecacd9f82ba145c1c4 /lib/std/net.zig | |
| parent | 2c5924c59a148335e5025b72a5ba98d765ed771d (diff) | |
| download | zig-bd3360e03d89fe947e3728ccacd4274653926376.tar.gz zig-bd3360e03d89fe947e3728ccacd4274653926376.zip | |
convert s[start..start+len] to s[start..][0..len]
Diffstat (limited to 'lib/std/net.zig')
| -rw-r--r-- | lib/std/net.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/net.zig b/lib/std/net.zig index 15a9e01da8..57e50a7349 100644 --- a/lib/std/net.zig +++ b/lib/std/net.zig @@ -1701,7 +1701,7 @@ fn dnsParse( p += @as(usize, 1) + @boolToInt(p[0] != 0); const len = p[8] * @as(usize, 256) + p[9]; if (@ptrToInt(p) + len > @ptrToInt(r.ptr) + r.len) return error.InvalidDnsPacket; - try callback(ctx, p[1], p[10 .. 10 + len], r); + try callback(ctx, p[1], p[10..][0..len], r); p += 10 + len; } } |
