Fix validation when name is empty

This commit is contained in:
zilmar 2021-01-20 21:27:47 +10:30
parent cd16a8cc48
commit b6325104a5
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ bool CProjectSupport::ValidateCode(const char * Code)
} }
} }
if (Name.length() > 0 && Email.length() > 0) if (Email.length() > 0)
{ {
strncpy(m_SupportInfo.Code, Code, sizeof(m_SupportInfo.Code)); strncpy(m_SupportInfo.Code, Code, sizeof(m_SupportInfo.Code));
strncpy(m_SupportInfo.Email, Email.c_str(), sizeof(m_SupportInfo.Email)); strncpy(m_SupportInfo.Email, Email.c_str(), sizeof(m_SupportInfo.Email));