mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
dix: dixLookupBuiltinColor(): fix int type mismatch
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
5c3ce08b0e
commit
0534ee4a75
@@ -858,7 +858,7 @@ dixLookupBuiltinColor(int screen,
|
||||
while (high >= low) {
|
||||
int mid = (low + high) / 2;
|
||||
const BuiltinColor *c = &BuiltinColors[mid];
|
||||
const int currentLen = strlen(c->name);
|
||||
const size_t currentLen = strlen(c->name);
|
||||
const int r = strncasecmp(c->name, name, min(len, currentLen));
|
||||
|
||||
if (r == 0) {
|
||||
|
||||
Reference in New Issue
Block a user