mirror of
https://github.com/mwpenny/portal64-still-alive.git
synced 2024-10-20 10:37:37 -04:00
Merge pull request #212 from hackgrid/master
skelatool64: Avoid truncate warning in CFileDefinition
This commit is contained in:
commit
adff490004
|
@ -322,8 +322,8 @@ std::string CFileDefinition::GetUniqueName(std::string requestedName) {
|
|||
int index = 1;
|
||||
|
||||
while (mUsedNames.find(result) != mUsedNames.end()) {
|
||||
char strBuffer[8];
|
||||
snprintf(strBuffer, 8, "_%d", index);
|
||||
char strBuffer[12];
|
||||
snprintf(strBuffer, 12, "_%d", index);
|
||||
result = mPrefix + "_" + requestedName + strBuffer;
|
||||
makeCCompatible(result);
|
||||
++index;
|
||||
|
@ -465,4 +465,4 @@ std::shared_ptr<ExtendedMesh> CFileDefinition::GetExtendedMesh(aiMesh* mesh) {
|
|||
|
||||
BoneHierarchy& CFileDefinition::GetBoneHierarchy() {
|
||||
return mBoneHierarchy;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue