summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Klausner <wiz@NetBSD.org>2012-07-20 23:41:18 +0200
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-07-30 23:11:14 -0700
commit45a8bd9a1ebf4f829d0f837beba2bb2b846fc834 (patch)
tree20f4bc59afe46e7b38cbe2beb28d3941a3980e00
parent74a751e9821bcd313ed9b8fb71d30ac9b5598b23 (diff)
Fix memset usage.
From Joerg Sonnenberger <joerg@NetBSD.org> Signed-off-by: Thomas Klausner <wiz@NetBSD.org> Reviewed-by: RĂ©mi Cardona <remi.cardona@free.fr> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/XEConTxt.c2
1 files changed, 1 insertions, 1 deletions
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;