MAX_TEMPLATE_NAME_LEN
char template_name[MAX_TEMPLATE_NAME_LEN];
if (hdr[HDR_TEMPLATE_NAME].len >= MAX_TEMPLATE_NAME_LEN) {