From dafca5f4a287d04eaf5e886a07f7f341a9a02456 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 12 Feb 2020 21:21:36 +0100 Subject: Print status using mvwaddstr instead of mvwprintw The status message may container printf-style modifiers which would cause an incorrect buffer to be accessed. --- src/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface.c b/src/interface.c index 1da4ade..27c937c 100644 --- a/src/interface.c +++ b/src/interface.c @@ -191,7 +191,7 @@ interface_set_status(struct interface *ifc, const gchar *msg, ...) werase(ifc->msg_win); box(ifc->msg_win, 0, 0); if (ifc->status != NULL) - mvwprintw(ifc->msg_win, 1, 1, ifc->status); + mvwaddstr(ifc->msg_win, 1, 1, ifc->status); wrefresh(ifc->msg_win); refresh(); } -- cgit