projects
/
platform
/
upstream
/
assimp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
818fb2e
)
[*] More suitable for array size of which can vary at compilation time.
author
Alexandr Arutjunov
<smal.root@gmail.com>
Thu, 29 Sep 2016 14:13:14 +0000
(17:13 +0300)
committer
Alexandr Arutjunov
<smal.root@gmail.com>
Thu, 29 Sep 2016 14:13:14 +0000
(17:13 +0300)
include/assimp/texture.h
patch
|
blob
|
history
diff --git
a/include/assimp/texture.h
b/include/assimp/texture.h
index
fe53cef
..
b445fd8
100644
(file)
--- 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