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.

30 lines
1.1 KiB

  1. --- a/src/oping.c
  2. +++ b/src/oping.c
  3. @@ -1125,7 +1125,7 @@ static int update_graph_prettyping (ping
  4. wattron (ctx->window, COLOR_PAIR(color));
  5. if (has_utf8())
  6. - mvwprintw (ctx->window, /* y = */ 3, /* x = */ x + 2, symbol);
  7. + mvwprintw (ctx->window, /* y = */ 3, /* x = */ x + 2, "%s", symbol);
  8. else
  9. mvwaddch (ctx->window, /* y = */ 3, /* x = */ x + 2, symbolc);
  10. @@ -1223,7 +1223,7 @@ static int update_graph_histogram (ping_
  11. mvwaddch (ctx->window, /* y = */ 3, /* x = */ x + 2, ' ');
  12. else if (has_utf8 ())
  13. mvwprintw (ctx->window, /* y = */ 3, /* x = */ x + 2,
  14. - hist_symbols_utf8[index]);
  15. + "%s", hist_symbols_utf8[index]);
  16. else
  17. mvwaddch (ctx->window, /* y = */ 3, /* x = */ x + 2,
  18. hist_symbols_acs[index] | A_ALTCHARSET);
  19. @@ -1600,8 +1600,7 @@ static void update_host_hook (pingobj_it
  20. HOST_PRINTF ("%zu bytes from %s (%s): icmp_seq=%u ttl=%i ",
  21. data_len, context->host, context->addr,
  22. - sequence, recv_ttl,
  23. - format_qos (recv_qos, recv_qos_str, sizeof (recv_qos_str)));
  24. + sequence, recv_ttl);
  25. if ((recv_qos != 0) || (opt_send_qos != 0))
  26. {
  27. HOST_PRINTF ("qos=%s ",