1 Dec
2022
1 Dec
'22
3:34 p.m.
What about using flexible array member? We've fixed similar issues elsewhere that way. Adding a `C_ASSERT( sizeof(struct memory_view) == offsetof(struct memory_view, name[0]) );` next to the struct definition also makes sure it is correctly alignmed. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1637#note_18266