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'; } } }