зеркало из https://github.com/mozilla/gecko-dev.git
typo. we need to be allocating the size of the struct, not the pointer to the struct.
This commit is contained in:
Родитель
19b8c75f3a
Коммит
7a63151a46
|
@ -166,7 +166,7 @@ nsDataChannel::ParseData() {
|
|||
|
||||
PRUint32 dataLen = PL_strlen(comma+1);
|
||||
PRUint32 wrote;
|
||||
writeData *dataToWrite = (writeData*)nsAllocator::Alloc(sizeof(dataToWrite));
|
||||
writeData *dataToWrite = (writeData*)nsAllocator::Alloc(sizeof(writeData));
|
||||
if (!dataToWrite) return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
if (lBase64) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче