fixed windows compilation

This commit is contained in:
Cyril Soler 2016-01-13 10:23:21 -05:00
parent 4916496008
commit b56881e6d9
2 changed files with 2 additions and 2 deletions

View File

@ -290,7 +290,7 @@ bool getLocalAddresses(std::list<sockaddr_storage> & addrs)
#ifdef WINDOWS_SYS
// Seems strange to me but M$ documentation suggests to allocate this way...
DWORD bf_size = 16000;
IP_ADAPTER_ADDRESSES* adapter_addresses = (IP_ADAPTER_ADDRESSES*) rs_safe_malloc(bf_size);
IP_ADAPTER_ADDRESSES* adapter_addresses = (IP_ADAPTER_ADDRESSES*) rs_malloc(bf_size);
if(adapter_addresses == NULL)
return false ;

View File

@ -273,7 +273,7 @@ bool RsLoginHandler::tryAutoLogin(const RsPeerId& ssl_id,std::string& ssl_passwd
fseek(fp, 0, SEEK_END);
datalen = ftell(fp);
fseek(fp, 0, SEEK_SET);
dataptr = (char *) rs_safe_malloc(datalen);
dataptr = (char *) rs_malloc(datalen);
if(data_ptr == NULL)
{