rust-x-bindings / rust-xcb

Rust bindings and wrapper for XCB.
MIT License
161 stars 63 forks source link

fix align error #225

Closed light4 closed 1 year ago

light4 commented 1 year ago

This code will panic:

use display_info::DisplayInfo;

fn main() {
    let info = DisplayInfo::all().unwrap();
    dbg!(info);
}

thread 'main' panicked at 'misaligned pointer dereference: address must be a multiple of 0x4 but is 0x7ffcdcba06d3'