SDL_net: Fixed adding text to the edit box

From 0a844c1894794972e170a8c7f5148009e65f8846 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 20 Jun 2022 19:26:46 -0700
Subject: [PATCH] Fixed adding text to the edit box

---
 chat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chat.c b/chat.c
index 798892c..4afbf8a 100644
--- a/chat.c
+++ b/chat.c
@@ -536,7 +536,7 @@ int main(int argc, char *argv[])
                             keypos = 0;
                         }
                         /* Add the text to our send buffer */
-                        TextWindowAddText(sendwin, event.text.text, textlen);
+                        TextWindowAddTextWithLength(sendwin, event.text.text, textlen);
                         SDL_memcpy(&keybuf[keypos], event.text.text, textlen);
                         keypos += textlen;
                     }