diff --git a/src/cli/cli_tcp.cpp b/src/cli/cli_tcp.cpp index eda31b59ff6..6992966fecf 100644 --- a/src/cli/cli_tcp.cpp +++ b/src/cli/cli_tcp.cpp @@ -493,14 +493,14 @@ template <> otError TcpExample::Process(Arg aArgs[]) { // Binary hex data payload dataLen = sizeof(buf); - data = &buf[0]; + data = &buf[0]; SuccessOrExit(error = aArgs[1].ParseAsHexString(dataLen, buf)); } else { VerifyOrExit(aArgs[1].IsEmpty(), error = OT_ERROR_INVALID_ARGS); dataLen = aArgs[0].GetLength(); - data = reinterpret_cast(aArgs[0].GetCString()); + data = reinterpret_cast(aArgs[0].GetCString()); } if (mUseCircularSendBuffer) @@ -522,8 +522,7 @@ template <> otError TcpExample::Process(Arg aArgs[]) { size_t written; - SuccessOrExit(error = otTcpCircularSendBufferWrite(&mEndpoint, &mSendBuffer, data, - dataLen, &written, 0)); + SuccessOrExit(error = otTcpCircularSendBufferWrite(&mEndpoint, &mSendBuffer, data, dataLen, &written, 0)); } } else