summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@gmail.com>2020-02-12 21:21:36 +0100
committerBenjamin Franzke <benjaminfranzke@gmail.com>2020-02-15 11:07:11 +0100
commitdafca5f4a287d04eaf5e886a07f7f341a9a02456 (patch)
tree5386ff6df3517ca7e8633be3518d13e5caeee917 /src
parent31c716066f6d9e076e41fdf4f3708b2c9a89e43f (diff)
downloadpa-sink-ctl-dafca5f4a287d04eaf5e886a07f7f341a9a02456.tar.gz
pa-sink-ctl-dafca5f4a287d04eaf5e886a07f7f341a9a02456.tar.bz2
pa-sink-ctl-dafca5f4a287d04eaf5e886a07f7f341a9a02456.zip
Print status using mvwaddstr instead of mvwprintw
The status message may container printf-style modifiers which would cause an incorrect buffer to be accessed.
Diffstat (limited to 'src')
-rw-r--r--src/interface.c2
1 files changed, 1 insertions, 1 deletions
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();
}