- use strncpy instead of sprintf tp init static char array to ensure that all elements get initialized.

This commit is contained in:
Christoph Oelckers 2014-12-29 16:35:30 +01:00
parent aac1ce4eb7
commit 045725de15
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ public:
FLightAssociation(FName actorName, const char *frameName, FName lightName)
: m_ActorName(actorName), m_AssocLight(lightName)
{
mysnprintf(m_FrameName, 8, "%s", frameName);
strncpy(m_FrameName, frameName, 8);
}
FName ActorName() { return m_ActorName; }