echosrv.c: fix format '%ld' expects argument of type 'long int', but argument 3 has type 'ssize_t' {aka 'int'}

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
This commit is contained in:
Sergey Ponomarev 2024-05-19 13:57:21 +03:00 committed by Yves Rutschle
parent 8166be1a09
commit 799d75413f

View File

@ -163,7 +163,7 @@ void udp_echo(struct listen_endpoint* listen_socket)
perror("recvfrom");
}
*(data + prefix_len + len) = 0;
fprintf(stderr, "%ld: %s\n", len, data + prefix_len);
fprintf(stderr, "%zd %s\n", len, data + prefix_len);
print_udp_xchange(listen_socket->socketfd, &src_addr, addrlen);