mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-19 14:15:21 -06:00
Core: svo_memeq fixed
git-svn-id: svn://ultimatepp.org/upp/trunk@6984 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
56cd28a5a5
commit
f47d9ebbaf
1 changed files with 1 additions and 1 deletions
|
|
@ -716,7 +716,7 @@ template <class tchar>
|
|||
force_inline bool svo_memeq(const tchar *a, const tchar *b, int len)
|
||||
{
|
||||
if(len > 11)
|
||||
return memcmp(a, b, len) == 0;
|
||||
return memcmp(a, b, len * sizeof(tchar)) == 0;
|
||||
switch(len) {
|
||||
case 11:
|
||||
if(a[10] != b[10]) return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue