cnping

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

commit ac09bb4524488f55af9ee720904eaaef4b0895c4
parent afcc565771a37978eb0b54e185fa80482cdebe3a
Author: Michael Buch <michaelbuch12@gmail.com>
Date:   Mon, 25 Mar 2019 16:19:30 +0000

Fix integer overflow during creation of random seed at startup

Diffstat:
Mcnping.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cnping.c b/cnping.c @@ -616,7 +616,7 @@ int main( int argc, const char ** argv ) ShowWindow (GetConsoleWindow(), SW_HIDE); #endif - srand( (int)(OGGetAbsoluteTime()*100000) ); + srand( (uintmax_t)(OGGetAbsoluteTime()*100000) ); for( i = 0; i < sizeof( pattern ); i++ ) {