Skip to content

Commit

Permalink
src: fix compatibility with ncurses 6.3
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
  • Loading branch information
Alexander Kanavin committed Oct 25, 2021
1 parent 2bcc17a commit 9ef1559
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/devices/devfreq.cpp
Expand Up @@ -297,7 +297,7 @@ void display_devfreq_devices(void)
df->fill_freq_utilization(j, buf);
strcat(fline, buf);
strcat(fline, "\n");
wprintw(win, fline);
wprintw(win, "%s", fline);
}
wprintw(win, "\n");
}
Expand Down
2 changes: 1 addition & 1 deletion src/display.cpp
Expand Up @@ -125,7 +125,7 @@ void show_tab(unsigned int tab)

c = bottom_lines[tab_names[tab]].c_str();
if (c && strlen(c) > 0)
mvwprintw(bottom_line, 0,0, c);
mvwprintw(bottom_line, 0,0, "%s", c);
else
mvwprintw(bottom_line, 0, 0,
"<ESC> %s | <TAB> / <Shift + TAB> %s | ", _("Exit"),
Expand Down
2 changes: 1 addition & 1 deletion src/lib.cpp
Expand Up @@ -583,7 +583,7 @@ void ui_notify_user_ncurses(const char *frmt, ...)
* buffer */
vsnprintf(notify, UI_NOTIFY_BUFF_SZ - 1, frmt, list);
va_end(list);
mvprintw(1, 0, notify);
mvprintw(1, 0, "%s", notify);
attroff(COLOR_PAIR(1));
}

Expand Down

0 comments on commit 9ef1559

Please sign in to comment.