diff --git a/util/fontconv.c b/util/fontconv.c index 9eb6da58..e4709981 100644 --- a/util/fontconv.c +++ b/util/fontconv.c @@ -37,7 +37,7 @@ static str *getXLFDTokens(char *xlfd) int i, len, size; char *ptr; - if (!xlfd || *xlfd != '-' || countChar(xlfd, '-') < XLFD_TOKENS) + if (!xlfd || *xlfd != '-' || countChar(xlfd, '-') != XLFD_TOKENS) return NULL; memset(tokens, 0, sizeof(str) * XLFD_TOKENS);