MAXRECSIZE
memset(recbuf, 0, MAXRECSIZE);
if (MAXRECSIZE - recpos < size)
static char recbuf[MAXRECSIZE];