src/video/x11/SDL_x11events.c
changeset 1336 3692456e7b0f
parent 1328 27ddb06a0bca
child 1338 604d73db6802
     1.1 --- a/src/video/x11/SDL_x11events.c	Mon Feb 06 17:28:04 2006 +0000
     1.2 +++ b/src/video/x11/SDL_x11events.c	Tue Feb 07 06:59:48 2006 +0000
     1.3 @@ -274,7 +274,7 @@
     1.4  	int posted;
     1.5  	XEvent xevent;
     1.6  
     1.7 -	memset(&xevent, '\0', sizeof (XEvent));  /* valgrind fix. --ryan. */
     1.8 +	SDL_memset(&xevent, '\0', sizeof (XEvent));  /* valgrind fix. --ryan. */
     1.9  	pXNextEvent(SDL_Display, &xevent);
    1.10  
    1.11  	posted = 0;
    1.12 @@ -967,7 +967,7 @@
    1.13  		return 0;
    1.14  	}
    1.15  
    1.16 -	memset(&xkey, 0, sizeof(xkey));
    1.17 +	SDL_memset(&xkey, 0, sizeof(xkey));
    1.18  	xkey.display = SDL_Display;
    1.19  
    1.20  	xsym = keysym;		/* last resort if not found */
    1.21 @@ -1048,7 +1048,7 @@
    1.22  	}
    1.23  
    1.24  	/* Zero the new keyboard state and generate it */
    1.25 -	memset(kstate, 0, SDLK_LAST);
    1.26 +	SDL_memset(kstate, 0, SDLK_LAST);
    1.27  	/*
    1.28  	 * An obvious optimisation is to check entire longwords at a time in
    1.29  	 * both loops, but we can't be sure the arrays are aligned so it's not