diff --git a/SRC/ChangeLog b/SRC/ChangeLog index a3b0f3b..2307036 100644 --- a/SRC/ChangeLog +++ b/SRC/ChangeLog @@ -10,6 +10,7 @@ typical example is that "old-school" Unix aggreation of arguments ("echoping -v4 localhost") is no longer accepted (use "echoping -v -4 localhost"). + * Many bug fixes, see the list at Sourceforge 5.2.0 (2004-02-29) diff --git a/SRC/echoping.c b/SRC/echoping.c index 4a042b8..1def14f 100644 --- a/SRC/echoping.c +++ b/SRC/echoping.c @@ -750,7 +750,14 @@ main(argc, argv) alarm(timeout); if (i > 1) { #ifdef HAVE_USLEEP - usleep(wait * 1000000); + /* SUSv3 states that the argument to usleep() shall + be less * than 1000000, so split into two calls + if necessary. Bug #1473872, fix by Jeff Rizzo + - riz@sourceforge */ + if (wait >= 1) { + sleep((unsigned int) wait); + } + usleep((wait - (unsigned int) wait) * 1000000); #else sleep(wait); #endif @@ -1327,7 +1334,7 @@ main(argc, argv) gnutls_deinit(session); /* * gnutls_certificate_free_credentials(xcred); - * + * */ } #endif