if (element_len > 30 || !element_len) return -1;
int decode_displayname(unsigned char *element, int element_len) {// 0x16 - Display Name (UTF-8 text)       char displayname[31];             if (element_len > 30 || !element_len) return -1;     strncpy(displayname, element, element_len);     displayname[element_len] = 0;     lprintf(T_OPENTRAC, "Display Name: %s\r\n", displayname);     return 0;}