From a7b6e8f7fc85298707d448d2848ffce714fb47e1 Mon Sep 17 00:00:00 2001 From: David Griffith Date: Tue, 10 Jan 2017 04:36:10 -0800 Subject: [PATCH] Possible incorrect use of print_string() in os_reset_screen(). If print_string() and probably by extension print_char() are used before the Z-machine is running, a few random garbage characters are printed instead of the intended text. I'm not clear why this happens. --- src/curses/ux_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/curses/ux_init.c b/src/curses/ux_init.c index ffd7158..257b547 100644 --- a/src/curses/ux_init.c +++ b/src/curses/ux_init.c @@ -509,7 +509,7 @@ void os_reset_screen (void) { os_stop_sample(0); os_set_text_style(0); - print_string("[Hit any key to exit.]\n"); + os_display_string((zchar *)"[Hit any key to exit.]\n"); os_read_key(0, FALSE); scrollok(stdscr, TRUE); scroll(stdscr); refresh(); endwin(); -- 2.34.1