1
0
mirror of https://github.com/danog/php-libtgvoip.git synced 2024-11-26 20:04:48 +01:00

WTF is wrong with C strings

This commit is contained in:
Daniil Gentili 2017-06-26 10:37:07 +02:00
parent 11852e3d67
commit e6a3f28996

View File

@ -98,7 +98,7 @@ public:
}
if(peer_tag != "") {
memcpy(pTag, peer_tag.c_str(), 17);
memcpy(pTag, peer_tag.c_str(), 16);
}
eps.push_back(Endpoint(params[0][i]["id"], (int32_t)params[0][i]["port"], v4addr, v6addr, EP_TYPE_UDP_RELAY, pTag));