Skip to content

Commit

Permalink
atari:xbios: missing use of SDL_memcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Jul 28, 2014
1 parent d9769b0 commit e4e4159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/xbios/SDL_xbios.c
Expand Up @@ -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;
Expand Down

0 comments on commit e4e4159

Please sign in to comment.