Merge pull request #32 from F4FXL/bugfix/IcomHardware_#31

correct reading of data pointer #31
feature/ipv6_#35
Geoffrey Merck 3 years ago committed by GitHub
commit 8ee55c9415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -64,10 +64,11 @@ bool CHeardData::setIcomRepeaterData(const unsigned char *data, unsigned int len
assert(data != NULL);
assert(length >= 26U);
std::string sdata((const char *)data);
std::string suser((const char *)data + 10U);
std::string srptr((const char *)data + 18U);
m_user = sdata.substr(10, LONG_CALLSIGN_LENGTH);
m_repeater = sdata.substr(18, LONG_CALLSIGN_LENGTH);
m_user = suser.substr(LONG_CALLSIGN_LENGTH);
m_repeater = srptr.substr(LONG_CALLSIGN_LENGTH);
m_address = address;
m_port = port;

Loading…
Cancel
Save

Powered by TurnKey Linux.