From e6c8872fdc8d9b8aa5e208c9b55c6f230674a13d Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Mon, 11 Dec 2023 14:12:42 +0100
Subject: [PATCH] Fixed bug #7614: Segmentation Fault in SDL_BlitSurface
---
src/video/SDL_surface.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/video/SDL_surface.c b/src/video/SDL_surface.c
index b5fbba1aa394..c051d83687b7 100644
--- a/src/video/SDL_surface.c
+++ b/src/video/SDL_surface.c
@@ -688,7 +688,8 @@ int SDL_BlitSurface(SDL_Surface *src, const SDL_Rect *srcrect,
SDL_Surface *dst, SDL_Rect *dstrect)
{
SDL_Rect fulldst;
- int srcx, srcy, w, h;
+ int srcx, srcy;
+ Sint64 w, h;
/* Make sure the surfaces aren't locked */
if (!src || !dst) {