зеркало из https://github.com/mozilla/pjs.git
Fix to make compile on Mac.
This commit is contained in:
Родитель
be2c9322ca
Коммит
02dfda82c2
|
@ -62,13 +62,14 @@ CMT_CopyDataToItem(const unsigned char *data, CMUint32 len)
|
|||
{
|
||||
CMTItem item;
|
||||
|
||||
item.data = calloc(len, 1);
|
||||
item.data = (unsigned char*) calloc(len, 1);
|
||||
item.len = len;
|
||||
memcpy(item.data, data, len);
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
|
||||
static CMTStatus
|
||||
tmp_SendMessage(PCMT_CONTROL control, CMTItem *message)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче