Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing alignment padding to SetupRequest struct
Fields AuthorizationProtocolName and AuthorizationProtocolData of SetupRequest should be padded: http://www.x.org/releases/current/doc/xproto/x11protocol.html#Encoding::Connection_Setup The problem was discovered by github user pphaneuf while trying to use xgb to write his own implementation of the connection handshake. Neither xgb nor xcb actually use code generated for SetupRequest for the handshake, which is why this bug went unnoticed. BurntSushi/xgb#24 Alessandro Arzilli. Reviewed-by: Christian Linhart <chris@demorecorder.com>
- Loading branch information