mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-30 21:53:25 +00:00
dix: switch to byte-counting functions.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
7dd415aa6a
commit
2d35ea8d95
9 changed files with 54 additions and 53 deletions
|
|
@ -731,7 +731,7 @@ SLHostsExtend(ClientPtr pClient, int size, char *buf)
|
|||
int len = host->length;
|
||||
char n;
|
||||
swaps (&host->length, n);
|
||||
bufT += sizeof (xHostEntry) + (((len + 3) >> 2) << 2);
|
||||
bufT += sizeof (xHostEntry) + pad_to_int32(len);
|
||||
}
|
||||
(void)WriteToClient (pClient, size, buf);
|
||||
}
|
||||
|
|
@ -1222,7 +1222,7 @@ SwapConnSetupInfo(
|
|||
pInfoT += sizeof(xConnSetup);
|
||||
|
||||
/* Copy the vendor string */
|
||||
i = (pConnSetup->nbytesVendor + 3) & ~3;
|
||||
i = pad_to_int32(pConnSetup->nbytesVendor);
|
||||
memcpy(pInfoT, pInfo, i);
|
||||
pInfo += i;
|
||||
pInfoT += i;
|
||||
|
|
|
|||
Loading…
Reference in a new issue