Commit 05ac27ae authored by Oleksandr Dmytrenko's avatar Oleksandr Dmytrenko Committed by Aleksey

strncat usage fix

error: 'strncat' specified bound 1 equals source length

Change-Id: I7e58c93ba17a760b7434c25024c858ae0f634079
Signed-off-by: default avatarOleksandr Dmytrenko <o.dmytrenko@samsung.com>
parent 115c61d4
......@@ -757,7 +757,7 @@ OCStackResult BuildStringFromActionSet(OCActionSet* actionset, char** desc)
{
strncat(temp, actionset->actionsetName, strlen(actionset->actionsetName));
remaining -= strlen(actionset->actionsetName);
strncat(temp, ACTION_DELIMITER, strlen(ACTION_DELIMITER));
strncat(temp, ACTION_DELIMITER, strlen(ACTION_DELIMITER) + 1);
remaining--;
}
else
......@@ -774,7 +774,7 @@ OCStackResult BuildStringFromActionSet(OCActionSet* actionset, char** desc)
{
strncat(temp, actionTypeStr, strlen(actionTypeStr));
remaining -= strlen(actionTypeStr);
strncat(temp, ACTION_DELIMITER, strlen(ACTION_DELIMITER));
strncat(temp, ACTION_DELIMITER, strlen(ACTION_DELIMITER) + 1);
remaining -= strlen(ACTION_DELIMITER);
OICFree(actionTypeStr);
}
......
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