diff --git a/core/common/src/hdf_attribute.c b/core/common/src/hdf_attribute.c index 715832658535c6ef61a4538b364f2e1c73787caa..ce6ce2ca8981f2791ceace46b7ff2f8603e2b1e4 100644 --- a/core/common/src/hdf_attribute.c +++ b/core/common/src/hdf_attribute.c @@ -323,7 +323,7 @@ bool HdfDeviceListAdd(const char *moduleName, const char *serviceName) if (svcName == NULL) { break; } - if (strcpy_s(svcName, strlen(serviceName) + 1, serviceName) != EOK) { + if (strcpy(svcName, serviceName) != EOK) { HDF_LOGE("%s: string copy fail", __func__); OsalMemFree(svcName); break; 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