Alan Coopersmith <[email protected]> writes:

> Clear them out when needed instead of leaving whatever values were
> present in previously sent messages.

Given that nearly all of the calls to WriteToClient have already aligned
their data, I'd suggest that this should probably just use memset under
an if

        if (padBytes) {
                memset(oco->buf+oco->count), '\0', padBytes);
                oco->count += padBytes;
        }

(also, we should get rid of the padlength array and just use
'-count & 3' instead :-)

-- 
[email protected]

Attachment: pgpZDLoAjEIPC.pgp
Description: PGP signature

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to