[*] More suitable for array size of which can vary at compilation time.

pull/1011/head
Alexandr Arutjunov 2016-09-29 17:13:14 +03:00
parent 818fb2e901
commit a93a230f9e
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ struct aiTexture
//! @return true if the given string matches the format hint //! @return true if the given string matches the format hint
bool CheckFormat(const char* s) const bool CheckFormat(const char* s) const
{ {
return (0 == ::strncmp(achFormatHint,s,3)); return (0 == ::strncmp(achFormatHint, s, sizeof(achFormatHint)));
} }
// Construction // Construction