Skip to content

Commit e988feb

Browse files
committed
rg_gui: Fixed possible crash in rg_gui_draw_input_screen
1 parent efb7516 commit e988feb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

components/retro-go/rg_gui.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,9 @@ void rg_gui_draw_input_screen(const char *title, const char *message, const char
10591059
const int input_box_y = keyboard_y - input_box_height - 10;
10601060
char text_buffer[200];
10611061

1062+
if (!input_buffer)
1063+
input_buffer = "";
1064+
10621065
if (!partial_redraw)
10631066
{
10641067
// Clear background using same method as rg_gui_draw_dialog

0 commit comments

Comments
 (0)