dix: dixLookupBuiltinColor(): fix int type mismatch

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-08-08 16:58:50 +02:00
committed by Enrico Weigelt
parent 5c3ce08b0e
commit 0534ee4a75

View File

@@ -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) {