atari:xbios: missing use of SDL_memcpy SDL-1.2
authorPatrice Mandin
Mon, 28 Jul 2014 17:48:22 +0200
branchSDL-1.2
changeset 9020d64118890bdb
parent 9018 4a9c67d11c9f
child 9021 1691f05e9531
atari:xbios: missing use of SDL_memcpy
src/video/xbios/SDL_xbios.c
     1.1 --- a/src/video/xbios/SDL_xbios.c	Mon Jul 28 11:44:39 2014 +0200
     1.2 +++ b/src/video/xbios/SDL_xbios.c	Mon Jul 28 17:48:22 2014 +0200
     1.3 @@ -302,7 +302,7 @@
     1.4  		if ( saved_rect[b].w && saved_rect[b].h ) {
     1.5  		    for ( ++j; SDL_modelist[i][j]->w; ++j ) {
     1.6  			saved_rect[!b] = *SDL_modelist[i][j];
     1.7 -			memcpy(&saved_mode[!b], SDL_xbiosmode[i][j], sizeof(xbiosmode_t));
     1.8 +			SDL_memcpy(&saved_mode[!b], SDL_xbiosmode[i][j], sizeof(xbiosmode_t));
     1.9  			*SDL_modelist[i][j] = saved_rect[b];
    1.10  			SDL_memcpy(SDL_xbiosmode[i][j], &saved_mode[b], sizeof(xbiosmode_t));
    1.11  			b = !b;