SDL-1.2: SDL_iconv_string: fix truncation when handling SDL_ICONV_E2BIG case

From 6068bfbd0d0f346cd463c1d1f9f80581dddffa18 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 4 Jun 2023 01:01:06 -0700
Subject: [PATCH] SDL_iconv_string: fix truncation when handling
 SDL_ICONV_E2BIG case

Backport from SDL2 commit c369b900199f905c51edb372bd7780f67a544a8c.
---
 src/stdlib/SDL_iconv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/stdlib/SDL_iconv.c b/src/stdlib/SDL_iconv.c
index 950911f3..c257c91c 100644
--- a/src/stdlib/SDL_iconv.c
+++ b/src/stdlib/SDL_iconv.c
@@ -863,8 +863,8 @@ char *SDL_iconv_string(const char *tocode, const char *fromcode, const char *inb
 				outbuf = string + (outbuf - oldstring);
 				outbytesleft = stringsize - (outbuf - string);
 				SDL_memset(outbuf, 0, 4);
+				continue;
 			}
-			break;
 		    case SDL_ICONV_EILSEQ:
 			/* Try skipping some input data - not perfect, but... */
 			++inbuf;