CID 8115: Fix wrong size parameter to memcmp() which lead to a broken equality

operator.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39957 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2010-12-26 23:49:15 +00:00
parent dcea2eba12
commit cd7155635d
+1 -1
View File
@@ -434,7 +434,7 @@ BKeymap::operator==(const BKeymap& other) const
{
return fCharsSize == other.fCharsSize
&& !memcmp(&fKeys, &other.fKeys, sizeof(fKeys))
&& !memcmp(fChars, other.fChars, sizeof(fChars));
&& !memcmp(fChars, other.fChars, fCharsSize);
}