diff --git a/hw/xfree86/common/xf86Bus.c b/hw/xfree86/common/xf86Bus.c index cf160a791..d116a56e2 100644 --- a/hw/xfree86/common/xf86Bus.c +++ b/hw/xfree86/common/xf86Bus.c @@ -267,7 +267,7 @@ StringToBusType(const char *busID, const char **retID) BusType ret = BUS_NONE; /* If no type field, Default to PCI */ - if (isdigit(busID[0])) { + if (isdigit((unsigned char)busID[0])) { if (retID) *retID = busID; return BUS_PCI;