From ebd1d37e747934fd9aaa23a38c000d8841292bcf Mon Sep 17 00:00:00 2001 From: Kevin Larke Date: Sat, 6 Dec 2014 14:34:08 -0800 Subject: [PATCH] cmUdpPort.c : Fixed bug in cmUdpTestV() where arguments were not correctly selected from 'arv'. --- cmUdpPort.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmUdpPort.c b/cmUdpPort.c index b4d7b05..c65e3f8 100644 --- a/cmUdpPort.c +++ b/cmUdpPort.c @@ -690,11 +690,11 @@ cmUdpRC_t cmUdpTest( cmCtx_t* ctx, const char* remoteIpAddr, cmUdpPort_t port ) cmUdpRC_t cmUdpTestV( cmCtx_t* ctx, unsigned argc, const char* argv[]) { - if( argc < 3 ) - return cmErrMsg(&ctx->err,kTestFailUdpRC,"cmUdpTestV usage: argv[1]= argv[2]="); + if( argc != 2 ) + return cmErrMsg(&ctx->err,kTestFailUdpRC,"cmUdpTestV usage: argv[0]= argv[1]="); - const char* ipAddr = argv[1]; - cmUdpPort_t port = atoi(argv[2]); + const char* ipAddr = argv[0]; + cmUdpPort_t port = atoi(argv[1]); cmRptPrintf(&ctx->rpt,"UDP Test Sending To: %s port:%i\n",ipAddr,port);