diff --git a/src/util/src/tnettest.c b/src/util/src/tnettest.c index c6d64d1ae5dc9d290e47f2f7033dbb14558a1d66..d3026366a6086ced311292f9ab6709cb1c6de7a1 100644 --- a/src/util/src/tnettest.c +++ b/src/util/src/tnettest.c @@ -364,7 +364,7 @@ static int32_t taosNetCheckRpc(const char* serverFqdn, uint16_t port, uint16_t p reqMsg.code = 0; reqMsg.handle = NULL; // rpc handle returned to app reqMsg.ahandle = NULL; // app handle set by client - tstrncpy((char*)reqMsg.pCont, "nettest", pkgLen); + tstrncpy((char*)reqMsg.pCont, "nettest", pktLen); rpcSendRecv(pRpcConn, &epSet, &reqMsg, &rspMsg);