cnping

Minimal Graphical Ping Tool
git clone https://git.sinitax.com/cnlohr/cnping
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

commit 27ea59398836b5abcc4ba8fdb0a9bf66680eccd6
parent d5e1a8ac74d6ec221c2efda2125b1ad48fc04979
Author: cnlohr <lohr85@gmail.com>
Date:   Fri, 22 Jan 2016 21:55:53 -0500

fix the [1]

Diffstat:
Mping.c | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/ping.c b/ping.c @@ -178,7 +178,6 @@ void ping(struct sockaddr_in *addr, float pingperiod) pckt.hdr.type = ICMP_ECHO; pckt.hdr.un.echo.id = pid; int rsize = load_ping_packet( pckt.msg, sizeof( pckt.msg ) ); - pckt.msg[i] = 0; pckt.hdr.un.echo.sequence = cnt++; pckt.hdr.checksum = checksum(&pckt, sizeof(pckt) - sizeof( pckt.msg ) + rsize ); if ( sendto(sd, (char*)&pckt, sizeof(pckt) - sizeof( pckt.msg ) + rsize , 0, (struct sockaddr*)addr, sizeof(*addr)) <= 0 )