# std.Io.net: fix off-by-one in HostName.expand · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/2e6f7d36b9292b2a88a28c3caab767cd9401175d)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 2e6f7d36b9292b2a88a28c3caab767cd9401175d

Requested commit: 2e6f7d36b9292b2a88a28c3caab767cd9401175d

Commit: 2e6f7d36b9292b2a88a28c3caab767cd9401175d

Tree: 42d6ba92494bef5385b90997289cb1d941d2212e

Author: 0x4a61636f62

Committer: Ryan Liptak

## Message

```
std.Io.net: fix off-by-one in HostName.expand

`HostName.expand` was including the null terminator in the slice passed to `HostName.init`, which caused `HostName.validate` to fail.

```

## Parents

- [813e8614bc2ecda414f308a1662be074e788e3f2](https://git.cafe/gitcafe/zig/commit/813e8614bc2ecda414f308a1662be074e788e3f2?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/2e6f7d36b9292b2a88a28c3caab767cd9401175d?format=markdown)
