commit b9ee1fdb3fdc21bb0e9f8cd4e3b2ddaceb17865b
parent fc696d6b365f9104bf88130e126144bcf556686a
Author: cnlohr <lohr85@gmail.com>
Date: Fri, 22 Jun 2018 01:02:43 -0400
Fix overflow if set exceeds 8192
Diffstat:
2 files changed, 1 insertion(+), 0 deletions(-)
diff --git a/cnping.c b/cnping.c
@@ -65,6 +65,7 @@ void HandleNewPacket( int seqno )
HandleGotPacket( timeoutmark, 1 );
}
timeoutmark++;
+ if( timeoutmark >= PINGCYCLEWIDTH ) timeoutmark = 0;
}
}
diff --git a/cnping.exe b/cnping.exe
Binary files differ.