зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1270310
- Part 2: Pass buffer length to Assign call in ConvertStringLineBreaks. r=froydnj
The length of the new buffer being assigned in ConvertStringLineBreaks has already been calculated, so we can pass that in.
This commit is contained in:
Родитель
288aaa8d36
Коммит
99b5f4dce2
|
@ -478,7 +478,7 @@ nsLinebreakConverter::ConvertStringLineBreaks(nsString& aIoString,
|
|||
}
|
||||
|
||||
if (stringBuf != aIoString.get()) {
|
||||
aIoString.Adopt(stringBuf);
|
||||
aIoString.Adopt(stringBuf, newLen - 1);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче