[PATCH:libXTrap] Fix memset usage.

Thomas Klausner wiz at NetBSD.org
Wed Jul 18 07:47:34 PDT 2012


>From Joerg Sonnenberger <joerg at NetBSD.org>

Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
---
 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



More information about the xorg-devel mailing list