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

IOT-2223: Fix build break.

Use strlen instead of strnlen_s.

Change-Id: I11e837da3d9e31e092093732f48f72b4171319a4
Signed-off-by: default avatarSoemin Tjong <>
Reviewed-on: default avatarjenkins-iotivity <>
Reviewed-by: default avatarDan Mihai <>
parent a61319aa
......@@ -1719,10 +1719,13 @@ void OCFFramework::RequestAccessWorkerThread(RequestAccessContext* requestContex
// Make sure user input string is terminated
passwordBuffer[OXM_PRECONFIG_PIN_MAX_SIZE] = '\0';
// Set the preconfigured pin
result = deviceDetails->securityInfo.device->addPreconfigPIN(
strnlen_s(passwordBuffer, passwordBufferSize));
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