зеркало из https://github.com/mozilla/pjs.git
typo. we need to be allocating the size of the struct, not the pointer to the struct.
This commit is contained in:
Родитель
3c9a2f9dc0
Коммит
ee4b9f450d
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче