diff options
author | Benjamin Franzke <benjaminfranzke@gmail.com> | 2020-02-12 21:21:36 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@gmail.com> | 2020-02-15 11:07:11 +0100 |
commit | dafca5f4a287d04eaf5e886a07f7f341a9a02456 (patch) | |
tree | 5386ff6df3517ca7e8633be3518d13e5caeee917 /src | |
parent | 31c716066f6d9e076e41fdf4f3708b2c9a89e43f (diff) | |
download | pa-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.c | 2 |
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(); } |