Bug 1248757 Use string ::Assign() instead of Adopt() when reading blobs as strings. r=asuth

This commit is contained in:
Ben Kelly 2016-02-16 14:32:00 -08:00
parent a344e5d2b3
commit 431cc9724f

View File

@ -104,7 +104,7 @@ DoGetBlobAsString(T* aThis, uint32_t aIndex, V& aValue)
aThis->GetBlob(aIndex, &size, reinterpret_cast<uint8_t**>(&blob));
NS_ENSURE_SUCCESS(rv, rv);
aValue.Adopt(blob, size / sizeof(char_type));
aValue.Assign(blob, size / sizeof(char_type));
return NS_OK;
}