From 6e9ff0a160b89b6b9a87d7bd5c8c7dba68b813df Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Thu, 28 Mar 2013 14:36:16 -0400 Subject: [PATCH] shm: Make sure the zero-sized array is always last in the struct https://bugzilla.gnome.org/show_bug.cgi?id=696681 --- sys/shm/shmpipe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/shm/shmpipe.c b/sys/shm/shmpipe.c index 677113b..d721859 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; }; -- 2.7.4