mirror of
https://github.com/danog/php-libtgvoip.git
synced 2024-11-30 04:19:26 +01:00
WTF is wrong with C strings
This commit is contained in:
parent
11852e3d67
commit
e6a3f28996
2
main.cpp
2
main.cpp
@ -98,7 +98,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(peer_tag != "") {
|
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));
|
eps.push_back(Endpoint(params[0][i]["id"], (int32_t)params[0][i]["port"], v4addr, v6addr, EP_TYPE_UDP_RELAY, pTag));
|
||||||
|
Loading…
Reference in New Issue
Block a user