mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-25 05:11:04 +00:00
- use strncpy instead of sprintf tp init static char array to ensure that all elements get initialized.
This commit is contained in:
parent
aac1ce4eb7
commit
045725de15
1 changed files with 1 additions and 1 deletions
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue