Commit 71a45d8c authored by Soemin Tjong's avatar Soemin Tjong Committed by Dan Mihai

IOT-2223: Fix build break.

https://jira.iotivity.org/browse/IOT-2223

Use strlen instead of strnlen_s.

Change-Id: I11e837da3d9e31e092093732f48f72b4171319a4
Signed-off-by: default avatarSoemin Tjong <stjong@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19731Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: default avatarDan Mihai <Daniel.Mihai@microsoft.com>
parent a61319aa
......@@ -1719,10 +1719,13 @@ void OCFFramework::RequestAccessWorkerThread(RequestAccessContext* requestContex
passwordInputCallbackInfo);
}
// Make sure user input string is terminated
passwordBuffer[OXM_PRECONFIG_PIN_MAX_SIZE] = '\0';
// Set the preconfigured pin
result = deviceDetails->securityInfo.device->addPreconfigPIN(
passwordBuffer,
strnlen_s(passwordBuffer, passwordBufferSize));
strlen(passwordBuffer));
if (OC_STACK_OK != result)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment