From a93a230f9eb978c9ae3845d343bd7eb23e82de49 Mon Sep 17 00:00:00 2001 From: Alexandr Arutjunov Date: Thu, 29 Sep 2016 17:13:14 +0300 Subject: [PATCH] [*] More suitable for array size of which can vary at compilation time. --- include/assimp/texture.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/assimp/texture.h b/include/assimp/texture.h index fe53cef..b445fd8 100644 --- a/include/assimp/texture.h +++ b/include/assimp/texture.h @@ -187,7 +187,7 @@ struct aiTexture //! @return true if the given string matches the format hint bool CheckFormat(const char* s) const { - return (0 == ::strncmp(achFormatHint,s,3)); + return (0 == ::strncmp(achFormatHint, s, sizeof(achFormatHint))); } // Construction -- 2.7.4