fix mvwprintw string literal error
This commit is contained in:
2
main.c
2
main.c
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user