From: Alexandr Arutjunov Date: Thu, 29 Sep 2016 14:13:14 +0000 (+0300) Subject: [*] More suitable for array size of which can vary at compilation time. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a93a230f9eb978c9ae3845d343bd7eb23e82de49;p=platform%2Fupstream%2Fassimp.git [*] More suitable for array size of which can vary at compilation time. --- 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