rem: size = strcspn(ptr, "-");
add: size = strcspn(ptr, "-,");
context: getXLFDTokens(char *xlfd){    static str tokens[XLFD_TOKENS];    int i, len, size;    char *ptr;    if (!xlfd || *xlfd!='-' || countChar(xlfd, '-')<XLFD_TOKENS)        return NULL;    memset(tokens, 0, sizeof(str)*XLFD_TOKENS);    len  = strlen(xlfd);    for (ptr=xlfd, i=0; i<XLFD_TOKENS && len>0; i++) {        /* skip one '-' */        ptr++;        len--;        if (len <= 0)            break;        size = strcspn(ptr, "-");        tokens[i].str = ptr;        tokens[i].len = size;        ptr += size;        len -= size;    }    return tokens;}