Skip to content
  • aarzilli's avatar
    Add missing alignment padding to SetupRequest struct · a909451a
    aarzilli authored and Christian Linhart's avatar Christian Linhart committed
    
    
    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.
    
    https://github.com/BurntSushi/xgb/issues/24
    
    Alessandro Arzilli.
    
    Reviewed-by: default avatarChristian Linhart <chris@demorecorder.com>
    a909451a