From b779e14db63b92d346b82d503fb91c2c3c78cbf0 Mon Sep 17 00:00:00 2001 From: David Schweikert Date: Fri, 2 May 2014 23:51:49 +0200 Subject: [PATCH] test fix --- src/fping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fping.c b/src/fping.c index b62983c..d79d2eb 100644 --- a/src/fping.c +++ b/src/fping.c @@ -392,7 +392,7 @@ int main( int argc, char **argv ) break; case 'r': - if(!(retry = ( unsigned int )atoi( optarg ))) + if (!sscanf(optarg,"%i",&retry)) usage(1); break;