1
0
Fork 0

Use struct sockaddr_storage instead of sockaddr_storage.

master
Jonathan Naylor 4 years ago
parent 05c627c7d5
commit 51fc88f6e4

@ -215,7 +215,7 @@ void CYSFReflector::run()
if (rpt == NULL) {
rpt = new CYSFRepeater;
rpt->m_callsign = std::string((char*)(buffer + 4U), 10U);
::memcpy(&rpt->m_addr, &addr, sizeof(sockaddr_storage));
::memcpy(&rpt->m_addr, &addr, sizeof(struct sockaddr_storage));
rpt->m_addrLen = addrLen;
m_repeaters.push_back(rpt);
network.setCount(m_repeaters.size());

Loading…
Cancel
Save