From a1dea11d32271bea81a336d99290d21fce7e1a32 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sun, 4 Jun 2023 14:29:10 +0300
Subject: [PATCH] fix MSVC build error.
---
src/stdlib/SDL_string.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/stdlib/SDL_string.c b/src/stdlib/SDL_string.c
index eb7d2e3f30dc..7cf2590475f4 100644
--- a/src/stdlib/SDL_string.c
+++ b/src/stdlib/SDL_string.c
@@ -561,7 +561,7 @@ SDL_utf8strlcpy(SDL_OUT_Z_CAP(dst_bytes) char *dst, const char *src, size_t dst_
size_t src_bytes = SDL_strlen(src);
size_t bytes = SDL_min(src_bytes, dst_bytes - 1);
size_t i = 0;
- unsigned char trailing_bytes = 0;
+ size_t trailing_bytes = 0;
if (bytes) {
unsigned char c = (unsigned char)src[bytes - 1];