Index: apps/buffering.c =================================================================== --- apps/buffering.c (Revision 19965) +++ apps/buffering.c (Arbeitskopie) @@ -261,7 +261,10 @@ } else if (!can_wrap) { overlap = RINGBUF_ADD_CROSS(new_widx, len, buffer_len - 1); if (overlap > 0) + { new_widx += data_size - overlap; + new_widx = (new_widx + 3) & ~3; + } } /* How far we shifted buf_widx to align things, must be < buffer_len */