typo. we need to be allocating the size of the struct, not the pointer to the struct.

This commit is contained in:
valeski%netscape.com 1999-11-18 20:05:15 +00:00
Родитель 3c9a2f9dc0
Коммит ee4b9f450d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -166,7 +166,7 @@ nsDataChannel::ParseData() {
PRUint32 dataLen = PL_strlen(comma+1); PRUint32 dataLen = PL_strlen(comma+1);
PRUint32 wrote; 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 (!dataToWrite) return NS_ERROR_OUT_OF_MEMORY;
if (lBase64) { if (lBase64) {