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