diff --git a/src/kits/shared/Keymap.cpp b/src/kits/shared/Keymap.cpp index d6827c2f93..fe6fe970ae 100644 --- a/src/kits/shared/Keymap.cpp +++ b/src/kits/shared/Keymap.cpp @@ -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); }