View | Details | Raw Unified | Return to bug 280780
Collapse All | Expand All

(-)b/net/liboping/Makefile (+1 lines)
Lines 1-5 Link Here
1
PORTNAME=	liboping
1
PORTNAME=	liboping
2
DISTVERSION=	1.10.0
2
DISTVERSION=	1.10.0
3
PORTREVISION=	1
3
CATEGORIES=	net
4
CATEGORIES=	net
4
MASTER_SITES=	https://noping.cc/files/
5
MASTER_SITES=	https://noping.cc/files/
5
6
(-)b/net/liboping/files/patch-src_oping.c (+30 lines)
Added Link Here
1
--- src/oping.c.orig	2017-05-11 07:32:27 UTC
2
+++ src/oping.c
3
@@ -1125,7 +1125,7 @@ static int update_graph_prettyping (ping_context_t *ct
4
 			wattron (ctx->window, COLOR_PAIR(color));
5
 
6
 		if (has_utf8())
7
-			mvwprintw (ctx->window, /* y = */ 3, /* x = */ x + 2, symbol);
8
+			mvwprintw (ctx->window, /* y = */ 3, /* x = */ x + 2, "%s", symbol);
9
 		else
10
 			mvwaddch (ctx->window, /* y = */ 3, /* x = */ x + 2, symbolc);
11
 
12
@@ -1223,7 +1223,7 @@ static int update_graph_histogram (ping_context_t *ctx
13
 			mvwaddch (ctx->window, /* y = */ 3, /* x = */ x + 2, ' ');
14
 		else if (has_utf8 ())
15
 			mvwprintw (ctx->window, /* y = */ 3, /* x = */ x + 2,
16
-					hist_symbols_utf8[index]);
17
+					"%s", hist_symbols_utf8[index]);
18
 		else
19
 			mvwaddch (ctx->window, /* y = */ 3, /* x = */ x + 2,
20
 					hist_symbols_acs[index] | A_ALTCHARSET);
21
@@ -1600,8 +1600,7 @@ static void update_host_hook (pingobj_iter_t *iter, /*
22
 
23
 			HOST_PRINTF ("%zu bytes from %s (%s): icmp_seq=%u ttl=%i ",
24
 					data_len, context->host, context->addr,
25
-					sequence, recv_ttl,
26
-					format_qos (recv_qos, recv_qos_str, sizeof (recv_qos_str)));
27
+					sequence, recv_ttl);
28
 			if ((recv_qos != 0) || (opt_send_qos != 0))
29
 			{
30
 				HOST_PRINTF ("qos=%s ",

Return to bug 280780