# fix IB in fifoToOwnedArrayList · gitcafe/zig

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

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

Visibility: public

Requested revision: ffd071f55821f70fbfc59bab172ae07eaf7cde23

Requested commit: ffd071f55821f70fbfc59bab172ae07eaf7cde23

Commit: ffd071f55821f70fbfc59bab172ae07eaf7cde23

Tree: 47abd9fb28f7b177586445443edc1475624ee1ac

Author: Alex Kladov

Committer: Andrew Kelley

## Message

```
fix IB in fifoToOwnedArrayList

memcpy requires non-overlapping arguments.

fifo.realign() handles this case correctly and tries to provide an
optimized implementation.

This probably wasn't hit in practice, as, in a typical usage, fifo's
head is not advanced.

```

## Parents

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

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