From 940c572c018ea56de5da49a8e6aab350601deae4 Mon Sep 17 00:00:00 2001 From: adjoly Date: Sun, 17 Aug 2025 22:59:01 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix:=20sus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ping/send_icmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ping/send_icmp.c b/src/ping/send_icmp.c index a482b71..c21b799 100644 --- a/src/ping/send_icmp.c +++ b/src/ping/send_icmp.c @@ -77,7 +77,7 @@ void process_icmp(char *buf, int bytes, struct sockaddr_in *addr, int seq, append_time(rtt); - printf("%d bytes from %s: icmp_seq=%d ttl=%d time=%.3f\n", bytes, + printf("%lu bytes from %s: icmp_seq=%d ttl=%d time=%.3f\n", bytes - len + sizeof(struct icmphdr), inet_ntoa(addr->sin_addr), ntohs(icmp->un.echo.sequence), ip->ip_ttl, rtt); }