BUF_THREAD_ID_SIZE
limit = id + (BUF_THREAD_ID_SIZE / 2);
unsigned char thref[BUF_THREAD_ID_SIZE];
static char tmpstr[23 + BUF_THREAD_ID_SIZE];