mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1109972: nsHyphenator should not assume sizeof(bool) == sizeof(char). r=dbaron
This commit is contained in:
parent
8e1f7f43e2
commit
bd0a710872
@ -49,7 +49,7 @@ nsHyphenator::Hyphenate(const nsAString& aString,
|
||||
if (!aHyphens.SetLength(aString.Length())) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
memset(aHyphens.Elements(), false, aHyphens.Length());
|
||||
memset(aHyphens.Elements(), false, aHyphens.Length() * sizeof(bool));
|
||||
|
||||
bool inWord = false;
|
||||
uint32_t wordStart = 0, wordLimit = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user