diff --git a/src/backend/distributed/utils/attribute.c b/src/backend/distributed/utils/attribute.c index 3e784a14e..a31e881a5 100644 --- a/src/backend/distributed/utils/attribute.c +++ b/src/backend/distributed/utils/attribute.c @@ -167,7 +167,7 @@ AttributeQueryIfAnnotated(const char *query_string, CmdType commandType) if (tenantIdTextP != NULL) { char *tenantId = text_to_cstring(tenantIdTextP); - strcpy(attributeToTenant, tenantId); + strcpy_s(attributeToTenant, sizeof(attributeToTenant), tenantId); } colocationGroupId = ExtractFieldInt32(jsonbDatum, "cId", 0);