mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 07:25:43 +02:00
match setPayload() behavior
This commit is contained in:
parent
b3bcda2227
commit
65625c8e76
1 changed files with 1 additions and 3 deletions
|
@ -156,9 +156,7 @@ int main(int argc, const char* argv[]) {
|
||||||
qDebug("Reading Voxel Server Configuration.\n");
|
qDebug("Reading Voxel Server Configuration.\n");
|
||||||
qDebug() << " config: " << voxelServerConfig << "\n";
|
qDebug() << " config: " << voxelServerConfig << "\n";
|
||||||
int payloadLength = strlen(voxelServerConfig) + sizeof(char);
|
int payloadLength = strlen(voxelServerConfig) + sizeof(char);
|
||||||
uchar* payload = new uchar[payloadLength];
|
voxelServerAssignment.setPayload((const uchar*)voxelServerConfig, payloadLength);
|
||||||
memcpy(payload, voxelServerConfig, payloadLength);
|
|
||||||
voxelServerAssignment.setPayload(payload, payloadLength);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// construct a local socket to send with our created assignments to the global AS
|
// construct a local socket to send with our created assignments to the global AS
|
||||||
|
|
Loading…
Reference in a new issue