SDL_ttf: Fixed build

From b42fff1b372b858aa1f9746f0b567f4e22e60ed1 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 26 Sep 2024 12:32:28 -0700
Subject: [PATCH] Fixed build

---
 examples/testapp.c | 6 +++---
 src/SDL_ttf.c      | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/examples/testapp.c b/examples/testapp.c
index e88d61d5..e2b9f951 100644
--- a/examples/testapp.c
+++ b/examples/testapp.c
@@ -898,7 +898,7 @@ int main(void)
              }
           }
 #endif
-          if (!TTF_SizeText(font, text, &w, &h)) {
+          if (!TTF_SizeText(font, text, 0, &w, &h)) {
              SDL_Log("size failed");
           }
           if (w == 0) {
@@ -933,7 +933,7 @@ int main(void)
 #endif
                       break;
                    case 0:
-                      text_surface = SDL_RenderText_Solid(font, text, 0, textcol);
+                      text_surface = TTF_RenderText_Solid(font, text, 0, textcol);
                       break;
                 }
 
@@ -961,7 +961,7 @@ int main(void)
 #endif
                       break;
                    case 0:
-                      text_surface = SDL_RenderText_Solid(font, text, 0, textcol);
+                      text_surface = TTF_RenderText_Solid(font, text, 0, textcol);
                       break;
                 }
 
diff --git a/src/SDL_ttf.c b/src/SDL_ttf.c
index ab9e01ce..9c3f2da4 100644
--- a/src/SDL_ttf.c
+++ b/src/SDL_ttf.c
@@ -3426,7 +3426,7 @@ static SDL_Surface* TTF_Render_Wrapped_Internal(TTF_Font *font, const char *text
 
             while (textlen > 0) {
                 int is_delim;
-                Uint32 c = SDL_StepUTF8(&text_cpy, &textlen);
+                Uint32 c = SDL_StepUTF8((const char **)&text_cpy, &textlen);
 
                 if (c == UNICODE_BOM_NATIVE || c == UNICODE_BOM_SWAPPED) {
                     continue;