diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2013-03-28 14:36:16 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2013-03-28 14:37:03 -0400 |
commit | 6e9ff0a160b89b6b9a87d7bd5c8c7dba68b813df (patch) | |
tree | 828b5d7690ea1d0c2d983d32914b0e958cac1cc8 | |
parent | c42ac5b450bdc483ad356add3a711a2021996be3 (diff) |
shm: Make sure the zero-sized array is always last in the struct
https://bugzilla.gnome.org/show_bug.cgi?id=696681
-rw-r--r-- | sys/shm/shmpipe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/shm/shmpipe.c b/sys/shm/shmpipe.c index 677113b31..d72185999 100644 --- a/sys/shm/shmpipe.c +++ b/sys/shm/shmpipe.c @@ -115,10 +115,11 @@ struct _ShmBuffer ShmBuffer *next; + void *tag; + int num_clients; + /* This must ALWAYS stay last in the struct */ int clients[0]; - - void *tag; }; |