# net.Address: Fix writing 0-bytes when formatting Unix addresses · gitcafe/zig

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

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

Visibility: public

Requested revision: e1bf350b4d66a682c8fc5f151563dd1725e8eaf1

Requested commit: e1bf350b4d66a682c8fc5f151563dd1725e8eaf1

Commit: e1bf350b4d66a682c8fc5f151563dd1725e8eaf1

Tree: 3f5862ce05476513a87c24708bf08631d5587d8d

Author: Kirjastonhoitaja

Committer: Isaac Freund

## Message

```
net.Address: Fix writing 0-bytes when formatting Unix addresses

The entire 'path' array would get written to the formatting function,
when it should instead be treated as a regular zero-terminated string.

Note that this doesn't handle abstract paths on Linux, those paths
*start* with a \0 byte and are hence treated as empty strings instead.
But fixing that would require more adjustments than just formatting, in
particular to getOsSockLen().

```

## Parents

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

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