occlientcoll was using strcpy, changed it with OICStrcpy.
https://jira.iotivity.org/browse/IOT-1310
Change-Id: I51b6c46ea3095eea60c225953c38dfbe65985e7c
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12233
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
Tested-by: Ziran Sun <ziran.sun@samsung.com>
#include "payload_logging.h"
#include "logger.h"
#include "common.h"
+#include "oic_string.h"
+
std::string getQueryStrForGetPut();
#define TAG ("occlient")
/* Start a discovery query*/
char szQueryUri[MAX_QUERY_LENGTH] = { 0 };
- strcpy(szQueryUri, RESOURCE_DISCOVERY_QUERY);
+ OICStrcpy(szQueryUri, sizeof(RESOURCE_DISCOVERY_QUERY), RESOURCE_DISCOVERY_QUERY);
cbData.cb = discoveryReqCB;
cbData.context = (void*)DEFAULT_CONTEXT_VALUE;