for (i = 0; i < labels; i++)
{
buffer = (char *)GetNextLabel(buffer, nextLabel);
- strcat(decodedDomainString, nextLabel);
- strcat(decodedDomainString, ".");
+ strcat_s(decodedDomainString, sizeof(decodedDomainString), nextLabel);
+ strcat_s(decodedDomainString, sizeof(decodedDomainString), ".");
}
// Remove trailing dot from domain name.