From 4078af654b635817a89a3dc568e7235c0346a721 Mon Sep 17 00:00:00 2001 From: Tamas TEVESZ Date: Mon, 29 Mar 2010 14:46:24 +0200 Subject: [PATCH] An XLFD has exactly 15 fields, not "at least" 15 fields. --- util/fontconv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);