MAX_MESSAGES
if (++message_first == MAX_MESSAGES) message_first = 0;
static char *message_buf[MAX_MESSAGES];
if (i >= MAX_MESSAGES) i = 0;