On Sun, Nov 11, 2012 at 10:01:41PM +0100, Alexander Strasser wrote: > + snprintf(p->cmd_buf,CMD_BUFSIZE - 1,"REST %"PRId64, (int64_t)newpos); There should be no -1 for the size argument (same for all other snprintfs).