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:
committed by
Carlos R. Mafra
parent
7b9b7de172
commit
4078af654b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user