Merge pull request #1022 from Azaezel/alpha41/matrixDumpSafety

account for null dumpmatix captions
This commit is contained in:
Brian Roberts 2023-05-22 12:08:04 -05:00 committed by GitHub
commit 0e087ffb7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,7 +191,7 @@ EulerF MatrixF::toEuler() const
void MatrixF::dumpMatrix(const char *caption /* =NULL */) const
{
U32 size = dStrlen(caption);
U32 size = (caption == NULL)? 0 : dStrlen(caption);
FrameTemp<char> spacer(size+1);
char *spacerRef = spacer;