summaryrefslogtreecommitdiff
path: root/src/draw.c
diff options
context:
space:
mode:
authorlouie <lshprung@tutanota.com>2023-06-19 17:27:00 -0700
committerlouie <lshprung@tutanota.com>2023-06-19 17:27:00 -0700
commita11237da7f7722d37c42b49e86c6ddeb85486d62 (patch)
tree22e708f6d1c2fcd4a5880f7600afb8bfe78aac59 /src/draw.c
parentac0571b8fd42ad92d8383e022c8271cff23dfa43 (diff)
security fix to build with format-security flag
Diffstat (limited to 'src/draw.c')
-rw-r--r--src/draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/draw.c b/src/draw.c
index 03c53bf..72378b6 100644
--- a/src/draw.c
+++ b/src/draw.c
@@ -372,7 +372,7 @@ void update_col(int mode, int hl_where, bool resize){
wclear(col);
box(col, 0, 0);
wmove(col, 0, (col->_maxx - name_len)/2);
- wprintw(col, name);
+ wprintw(col, "%s", name);
wrefresh(col);
//update certain info in the col only if not a resizing-related call
@@ -399,7 +399,7 @@ void update_col(int mode, int hl_where, bool resize){
execution[info_win->_maxx - 3] = '.';
execution[info_win->_maxx - 4] = '.';
}
- mvwprintw(info_win, 1, 1, execution);
+ mvwprintw(info_win, 1, 1, "%s", execution);
}