Fix: Fix name collision (#5937)
* Fix: Fix name collision * Fix: Fix possible override * Fix: Use reentrant providing time function * Fix: Fix override * Update AssbinFileWriter.cpp Revert, not portable. * Update AssxmlFileWriter.cpp Revert asctime_r, not portable.
This commit is contained in:
@@ -661,11 +661,10 @@ void glTFImporter::ImportEmbeddedTextures(glTF::Asset &r) {
|
||||
if (strncmp(ext, "jpeg", 4) == 0) {
|
||||
ext = "jpg";
|
||||
}
|
||||
|
||||
const size_t len = strlen(ext);
|
||||
if (len <= 3) {
|
||||
strncpy(tex->achFormatHint, ext, len);
|
||||
}
|
||||
tex->achFormatHint[3] = '\0';
|
||||
size_t len = strlen(ext);
|
||||
if (len > 3) len = 3;
|
||||
memcpy(tex->achFormatHint, ext, len);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user