Fix loop issue after 65536 pings (reported by Peter Folk and GBert, #12), Minimum ping data size is now 0

pull/67/head
David Schweikert 12 years ago
parent 8daad08e1d
commit 7e55f0b073

@ -1,3 +1,7 @@
UNRELEASED
* Fix loop issue after 65536 pings (reported by Peter Folk and GBert, #12)
* Minimum ping data size is now 0
2013-05-22 David Schweikert <david@schweikert.ch> 2013-05-22 David Schweikert <david@schweikert.ch>
* Version 3.5 * Version 3.5
* Fix sprint_tm buffer size crash (reported by Japheth Cleaver) * Fix sprint_tm buffer size crash (reported by Japheth Cleaver)

@ -526,7 +526,9 @@ int main( int argc, char **argv )
break; break;
case 'b': case 'b':
if( !( ping_data_size = ( unsigned int )atoi( optarg ) ) ) errno = 0;
ping_data_size = (unsigned int) strtol(optarg, (char **)NULL, 10);
if( errno )
usage(1); usage(1);
break; break;

Loading…
Cancel
Save