You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
570 B

  1. --- a/display-main.c
  2. +++ b/display-main.c
  3. @@ -53,7 +53,7 @@ static struct ewma bpsn_avg;
  4. void print_dump_win(const char *str, int refresh)
  5. {
  6. wattron(dump_win, RED);
  7. - wprintw(dump_win, str);
  8. + wprintw(dump_win, "%s", str);
  9. wattroff(dump_win, RED);
  10. if (refresh)
  11. wrefresh(dump_win);
  12. --- a/display.c
  13. +++ b/display.c
  14. @@ -86,7 +86,7 @@ print_centered(WINDOW* win, int line, in
  15. vsnprintf(buf, cols, fmt, ap);
  16. va_end(ap);
  17. - mvwprintw(win, line, cols / 2 - strlen(buf) / 2, buf);
  18. + mvwprintw(win, line, cols / 2 - strlen(buf) / 2, "%s", buf);
  19. free(buf);
  20. }