We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af4a221 commit b245256Copy full SHA for b245256
1 file changed
RingBuf.c
@@ -92,9 +92,9 @@ int RingBufAdd(RingBuf *self, void *object)
92
//if not full
93
if (index >= 0)
94
{
95
+ memcpy(self->buf + index*self->size, object, self->size);
96
if (!self->isEmpty(self)) self->incr_end_index(self);
97
self->elements++;
- memcpy(self->buf + index*self->size, object, self->size);
98
}
99
100
0 commit comments