fix mvwprintw string literal error

This commit is contained in:
2024-06-02 07:09:39 +02:00
parent 476428b7de
commit e9d8988ef2

2
main.c
View File

@@ -120,7 +120,7 @@ void alert(const char *message, int terminal_width, int terminal_height) {
// draw a border around the window // draw a border around the window
box(alert_window, 0, 0); box(alert_window, 0, 0);
// print the message in the middle of the window // print the message in the middle of the window
mvwprintw(alert_window, message_y, message_x, message); mvwprintw(alert_window, message_y, message_x, "%s", message);
// refresh the window // refresh the window
wrefresh(alert_window); wrefresh(alert_window);
// wait for a key press // wait for a key press