mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Backed out changeset a88c34de5d01
This commit is contained in:
parent
1cf77fae9d
commit
c874883aa1
@ -1199,7 +1199,8 @@ NS_ReadInputStreamToString(nsIInputStream *aInputStream,
|
||||
nsACString &aDest,
|
||||
PRUint32 aCount)
|
||||
{
|
||||
if (!aDest.SetLength(aCount, mozilla::fallible_t()))
|
||||
aDest.SetLength(aCount);
|
||||
if (aDest.Length() != aCount)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
void* dest = aDest.BeginWriting();
|
||||
return NS_ReadInputStreamToBuffer(aInputStream, &dest, aCount);
|
||||
|
Loading…
Reference in New Issue
Block a user