Upgrade version to 0.95

This commit is contained in:
Yukari Chiba 2022-06-28 14:55:18 +08:00
parent d2b741b25f
commit c7401145b7
4 changed files with 5 additions and 51 deletions

View File

@ -1,48 +0,0 @@
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);

Binary file not shown.

BIN
mtr-0.95.tar.gz Normal file

Binary file not shown.

View File

@ -1,8 +1,8 @@
%global _hardened_build 1 %global _hardened_build 1
Name: mtr Name: mtr
Version: 0.94 Version: 0.95
Release: 4 Release: 1
Epoch: 2 Epoch: 2
Summary: Ping and Traceroute Network Diagnostic Tool Summary: Ping and Traceroute Network Diagnostic Tool
License: GPLv2 and BSD License: GPLv2 and BSD
@ -10,7 +10,6 @@ URL: https://www.bitwizard.nl/mtr/
Source0: https://github.com/traviscross/mtr/archive/v%{version}/%{name}-%{version}.tar.gz Source0: https://github.com/traviscross/mtr/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: net-x%{name}.desktop Source1: net-x%{name}.desktop
Source2: mtr-gtk-pkexec-wrapper.sh Source2: mtr-gtk-pkexec-wrapper.sh
Patch0: fix_for_printw_error.patch
BuildRequires: git autoconf automake libtool ncurses-devel gtk2-devel desktop-file-utils BuildRequires: git autoconf automake libtool ncurses-devel gtk2-devel desktop-file-utils
%if %{?openEuler:1}0 %if %{?openEuler:1}0
@ -90,6 +89,9 @@ make test
%{_mandir}/man8/* %{_mandir}/man8/*
%changelog %changelog
* Tue Jun 28 2022 YukariChiba <i@0x7f.cc> - 2:0.95-1
- Upgrade version to 0.95
* Sat Jun 25 2022 gaihuiying <eaglegai@163.com> - 2:0.94-4 * Sat Jun 25 2022 gaihuiying <eaglegai@163.com> - 2:0.94-4
- Type:bugfix - Type:bugfix
- CVE:NA - CVE:NA