From c5c7afa2939cb63bdc51369c74526397681c6374 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 27 Jun 2019 19:26:15 +0100 Subject: [PATCH] fix textbox bug --- src/raygui.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/raygui.h b/src/raygui.h index 988d9b0..1bf6343 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -2709,6 +2709,7 @@ RAYGUIDEF bool GuiTextBox(Rectangle bounds, char *text, int textSize, bool editM { text[keyCount] = (char)key; keyCount++; + text[keyCount] = '\0'; } } }