diff --git a/core/common/src/hdf_attribute.c b/core/common/src/hdf_attribute.c index 715832658535c6ef61a4538b364f2e1c73787caa..1d696fabc073a993c6e437525f9e554caa4dd8d3 100644 --- a/core/common/src/hdf_attribute.c +++ b/core/common/src/hdf_attribute.c @@ -323,11 +323,7 @@ bool HdfDeviceListAdd(const char *moduleName, const char *serviceName) if (svcName == NULL) { break; } - if (strcpy_s(svcName, strlen(serviceName) + 1, serviceName) != EOK) { - HDF_LOGE("%s: string copy fail", __func__); - OsalMemFree(svcName); - break; - } + strcpy(svcName, serviceName); deviceNodeInfo->svcName = svcName; HdfSListAdd(hostClnt->deviceInfos, &deviceNodeInfo->node); hostClnt->devCount++; diff --git a/tools/hc-gen/bin/hc-gen b/tools/hc-gen/bin/hc-gen new file mode 100755 index 0000000000000000000000000000000000000000..196de1293733a24442bb4937cf670066b108a76a Binary files /dev/null and b/tools/hc-gen/bin/hc-gen differ