We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd9b188 commit 9d8d680Copy full SHA for 9d8d680
src/libraries/runtime/include/runtime/ring.h
@@ -1120,7 +1120,7 @@ static inline ringsize_t stream_write(ringbuffer_t *ring,
1120
memcpy (&(ring->buf[t->tail]), src, n1);
1121
1122
if (n2) {
1123
- memcpy (&(ring->buf[t->tail + n1]), src + n1, n2);
+ memcpy(ring->buf, src + n1, n2);
1124
rtapi_smp_wmb();
1125
rtapi_store_u32(&t->tail, (t->tail + n1 + n2) & h->size_mask);
1126
} else {
0 commit comments