external/iotivity: Modify invalid snprintf usage
Change the size to the proper value of 1024
@@ -819,7 +819,7 @@ OCStackResult BuildStringFromActionSet(OCActionSet* actionset, char** desc)
actionTypeStr = (char *)OICMalloc(1024);
if(actionTypeStr != NULL)
{
- snprintf(actionTypeStr, sizeof(actionTypeStr), "%ld %u", actionset->timesteps, actionset->type);
+ snprintf(actionTypeStr, 1024, "%ld %u", actionset->timesteps, actionset->type);
if(remaining >= strlen(actionTypeStr) + strlen(ACTION_DELIMITER) + 1)
{
strncat(temp, actionTypeStr, strlen(actionTypeStr));
