fix mvwprintw string literal error

This commit is contained in:
Zvonimir Rudinski
2024-06-02 07:09:39 +02:00
parent 8a114acc71
commit 1c1ab9d29b

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
box(alert_window, 0, 0);
// 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
wrefresh(alert_window);
// wait for a key press