--- /dev/null
+--- liboping-1.10.0/src/oping.c~ 2017-05-11 09:32:27.000000000 +0200
++++ liboping-1.10.0/src/oping.c 2022-03-02 07:37:25.601351158 +0100
+@@ -1125,7 +1125,7 @@
+ wattron (ctx->window, COLOR_PAIR(color));
+
+ if (has_utf8())
+- mvwprintw (ctx->window, /* y = */ 3, /* x = */ x + 2, symbol);
++ mvwprintw (ctx->window, /* y = */ 3, /* x = */ x + 2, "%s", symbol);
+ else
+ mvwaddch (ctx->window, /* y = */ 3, /* x = */ x + 2, symbolc);
+
+@@ -1223,7 +1223,7 @@
+ mvwaddch (ctx->window, /* y = */ 3, /* x = */ x + 2, ' ');
+ else if (has_utf8 ())
+ mvwprintw (ctx->window, /* y = */ 3, /* x = */ x + 2,
+- hist_symbols_utf8[index]);
++ "%s", hist_symbols_utf8[index]);
+ else
+ mvwaddch (ctx->window, /* y = */ 3, /* x = */ x + 2,
+ hist_symbols_acs[index] | A_ALTCHARSET);
+@@ -1600,8 +1600,7 @@
+
+ HOST_PRINTF ("%zu bytes from %s (%s): icmp_seq=%u ttl=%i ",
+ data_len, context->host, context->addr,
+- sequence, recv_ttl,
+- format_qos (recv_qos, recv_qos_str, sizeof (recv_qos_str)));
++ sequence, recv_ttl);
+ if ((recv_qos != 0) || (opt_send_qos != 0))
+ {
+ HOST_PRINTF ("qos=%s ",
Summary(pl.UTF-8): Biblioteka liboping do generowania żądań ICMP echo
Name: liboping
Version: 1.10.0
-Release: 4
+Release: 5
License: LGPL v2.1+ (library), GPL v2+ (tool, perl binding)
Group: Libraries
Source0: http://noping.cc/files/%{name}-%{version}.tar.bz2
# Source0-md5: 54e0f5a1aaf9eabf3f412d2fdc9c6831
Patch0: gcc8.patch
+Patch1: format-security.patch
URL: http://noping.cc/
BuildRequires: autoconf >= 2.65
BuildRequires: automake
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}