Backed out changeset a88c34de5d01

This commit is contained in:
Jason Duell 2012-05-11 14:32:58 -07:00
parent 1cf77fae9d
commit c874883aa1

View File

@ -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);