if (element_len < 2) return -1; if (element_len > 5) return -1;
int decode_country(unsigned char *element, int element_len) {	// 0x15 Country Code - ISO 3166-1 and optionally -2	char country[3];	char subdivision[4];	if (element_len < 2) return -1;	if (element_len > 5) return -1;	strncpy(country, element, 2);	country[2] = 0;	if (element_len > 2) {		strncpy(subdivision, element+2, element_len-2);		subdivision[element_len-2] = 0;		lprintf(T_OPENTRAC, "Country Code %s-%s\r\n", country, subdivision);	}	else {		lprintf(T_OPENTRAC, "Country Code %s\r\n", country);	}	return 0;}