1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 04:20:27 +01:00

An XLFD has exactly 15 fields, not "at least" 15 fields.

This commit is contained in:
Tamas TEVESZ
2010-03-29 14:46:24 +02:00
committed by Carlos R. Mafra
parent 7b9b7de172
commit 4078af654b

View File

@@ -37,7 +37,7 @@ static str *getXLFDTokens(char *xlfd)
int i, len, size; int i, len, size;
char *ptr; char *ptr;
if (!xlfd || *xlfd != '-' || countChar(xlfd, '-') < XLFD_TOKENS) if (!xlfd || *xlfd != '-' || countChar(xlfd, '-') != XLFD_TOKENS)
return NULL; return NULL;
memset(tokens, 0, sizeof(str) * XLFD_TOKENS); memset(tokens, 0, sizeof(str) * XLFD_TOKENS);