diff options
Diffstat (limited to 'xserver/os')
-rw-r--r-- | xserver/os/access.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xserver/os/access.c b/xserver/os/access.c index e5a067220..61624fdf7 100644 --- a/xserver/os/access.c +++ b/xserver/os/access.c @@ -1335,7 +1335,7 @@ GetHosts(void **data, int *pnHosts, int *pLen, BOOL * pEnabled) } for (host = validhosts; host; host = host->next) { len = host->len; - if ((ptr + sizeof(xHostEntry) + len) > (data + n)) + if ((ptr + sizeof(xHostEntry) + len) > ((unsigned char *) *data + n)) break; ((xHostEntry *) ptr)->family = host->family; ((xHostEntry *) ptr)->length = len; |