mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-26 00:17:47 -10:00
AtkObject stores the name as a C string, but nsCString can store strings with '\0' in the middle. That means that if we compute a name containing '\0' nsCString.equals() will nevr consider that string to be equal to AtkObject::name, however we only want to compare up to the first '\0' because that is the only part Atk will ever see. So we should use strncmp() instead of nsCString.equals().