Fix version of strnlen

This commit is contained in:
kimkulling
2021-05-04 14:48:39 +02:00
parent ee5170c18a
commit 7690f92c81

View File

@@ -488,7 +488,11 @@ private:
}
//format of the color string: #RRGGBBAA or #RRGGBB (3MF Core chapter 5.1.1)
#ifdef _WIN32
const size_t len = strnlen_s(color, 9);
#else
const size_t len = strnlen(color, 9);
#endif
if (9 != len && 7 != len) {
return false;
}