From Joerg Sonnenberger <jo...@netbsd.org> Signed-off-by: Thomas Klausner <w...@netbsd.org> Reviewed-by: Rémi Cardona <remi.card...@free.fr> --- src/XEConTxt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/XEConTxt.c b/src/XEConTxt.c index e2dff16..d075c4f 100644 --- a/src/XEConTxt.c +++ b/src/XEConTxt.c @@ -69,7 +69,7 @@ XETC *XECreateTC(Display *dpy, CARD32 valuemask, XETCValues *value) { firsttime = False; /* The first Trap Context is the Template (default) TC */ - (void)memset(tc,0L,sizeof(tc)); + (void)memset(tc,0L,sizeof(*tc)); tc->eventBase = 0x7FFFFFFFL; tc->errorBase = 0x7FFFFFFFL; tc->values.v.max_pkt_size = 0x7FFFL; -- 1.7.11.1 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel