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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user