diff -uNr mtr-0.94.orig/ui/curses.c mtr-0.94/ui/curses.c --- mtr-0.94.orig/ui/curses.c 2020-09-24 16:26:14.000000000 +0800 +++ mtr-0.94/ui/curses.c 2022-03-10 15:35:51.374026715 +0800 @@ -432,7 +432,7 @@ attron(A_BOLD); #ifdef HAVE_IPINFO if (is_printii(ctl)) - printw(fmt_ipinfo(ctl, addr)); + printw("%s", fmt_ipinfo(ctl, addr)); #endif if (name != NULL) { if (ctl->show_ips) @@ -485,7 +485,7 @@ printw("\n "); #ifdef HAVE_IPINFO if (is_printii(ctl)) - printw(fmt_ipinfo(ctl, addrs)); + printw("%s", fmt_ipinfo(ctl, addrs)); #endif if (name != NULL) { if (ctl->show_ips) @@ -650,7 +650,7 @@ #ifdef HAVE_IPINFO if (is_printii(ctl)) - printw(fmt_ipinfo(ctl, addr)); + printw("%s", fmt_ipinfo(ctl, addr)); #endif name = dns_lookup(ctl, addr); printw("%s", name ? name : strlongip(ctl, addr)); @@ -700,7 +700,7 @@ mvprintw(1, 0, "%s (%s) -> %s", ctl->LocalHostname, net_localaddr(), ctl->Hostname); t = time(NULL); - mvprintw(1, maxx - 25, iso_time(&t)); + mvprintw(1, maxx - 25, "%s", iso_time(&t)); printw("\n"); printw("Keys: "); @@ -760,7 +760,7 @@ startstat = padding - 2; snprintf(msg, sizeof(msg), " Last %3d pings", max_cols); - mvprintw(rowstat - 1, startstat, msg); + mvprintw(rowstat - 1, startstat, "%s", msg); attroff(A_BOLD); move(rowstat, 0);