On Tue, Jul 21, 2020 at 9:46 PM Andy Shevchenko <andy.shevchenko@xxxxxxxxx> wrote: > On Mon, Jul 20, 2020 at 10:05 AM Matt Ranostay > <matt.ranostay@xxxxxxxxxxxx> wrote: ... > memmove(buf + 1, buf, ptr - buf); ptr - buf - 1 (off-by-one classic! But double check) -- With Best Regards, Andy Shevchenko