Skip to content
Permalink
Browse files

atari:xbios: missing use of SDL_memcpy

  • Loading branch information
pmandin committed Jul 28, 2014
1 parent d9769b0 commit e4e415933cf42b8ed7bed9b89dabd8dc8f57e5b3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/xbios/SDL_xbios.c
@@ -302,7 +302,7 @@ void SDL_XBIOS_AddMode(_THIS, int actually_add, const xbiosmode_t *modeinfo)
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;

0 comments on commit e4e4159

Please sign in to comment.