On Wed, Oct 07, 2015 at 12:25:40PM +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> > --- > server/reds_stream.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/server/reds_stream.c b/server/reds_stream.c > index 1a595b2..6dc41ca 100644 > --- a/server/reds_stream.c > +++ b/server/reds_stream.c > @@ -326,7 +326,7 @@ RedsStream *reds_stream_new(int socket) > RedsStream *stream; > > stream = spice_malloc0(sizeof(RedsStream) + sizeof(RedsStreamPrivate)); > - stream->priv = (RedsStreamPrivate *)(((char *)stream) + sizeof(RedsStream)); > + stream->priv = (RedsStreamPrivate *)(stream+1); Why not, not sure I'd consider it simpler, but ACK. Christophe
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel