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
Родитель 19b8c75f3a
Коммит 7a63151a46
1 изменённых файлов: 1 добавлений и 1 удалений

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

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