Skip to content

Commit

Permalink
Fixed bug libsdl-org#8897 - SDL_BlitSurface segfault when dest_rect i…
Browse files Browse the repository at this point in the history
…s null
  • Loading branch information
1bsyl committed Jan 22, 2024
1 parent ed5d3d9 commit 237535b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ int SDL_UpperBlit(SDL_Surface *src, const SDL_Rect *srcrect,
if (dstrect) { /* update output parameter */
*dstrect = r_dst;
}
return SDL_LowerBlit(src, &r_src, dst, dstrect);
return SDL_LowerBlit(src, &r_src, dst, &r_dst);
}

end:
Expand Down

0 comments on commit 237535b

Please sign in to comment.