Replace strcpy with strcpy_s

pull/6763/head
Gokhan Gulbiz 2023-03-10 16:35:21 +03:00
parent 64b6d7a44e
commit 7f0c502660
No known key found for this signature in database
GPG Key ID: 608EF06B6BD1B45B
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ AttributeQueryIfAnnotated(const char *query_string, CmdType commandType)
if (tenantIdTextP != NULL) if (tenantIdTextP != NULL)
{ {
char *tenantId = text_to_cstring(tenantIdTextP); char *tenantId = text_to_cstring(tenantIdTextP);
strcpy(attributeToTenant, tenantId); strcpy_s(attributeToTenant, sizeof(attributeToTenant), tenantId);
} }
colocationGroupId = ExtractFieldInt32(jsonbDatum, "cId", 0); colocationGroupId = ExtractFieldInt32(jsonbDatum, "cId", 0);