mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 04:03:35 +02:00
fix CS issues
This commit is contained in:
parent
ee0ceb8516
commit
fe62ed9844
1 changed files with 6 additions and 6 deletions
|
@ -624,7 +624,7 @@ int main(int argc, const char * argv[]) {
|
|||
// requests, like erase all, or add sphere scene
|
||||
char* command = (char*) &packetData[1]; // start of the command
|
||||
int commandLength = strlen(command); // commands are null terminated strings
|
||||
int totalLength = 1+commandLength+1;
|
||||
int totalLength = sizeof(PACKET_HEADER_Z_COMMAND) + commandLength + 1; // 1 for null termination
|
||||
|
||||
printf("got Z message len(%ld)= %s\n", receivedBytes, command);
|
||||
|
||||
|
@ -641,7 +641,7 @@ int main(int argc, const char * argv[]) {
|
|||
if (strcmp(command, (char*)"a message") == 0) {
|
||||
printf("got Z message == a message, nothing to do, just report\n");
|
||||
}
|
||||
totalLength += commandLength+1;
|
||||
totalLength += commandLength + 1; // 1 for null termination
|
||||
}
|
||||
|
||||
// Now send this to the connected agents so they can also process these messages
|
||||
|
|
Loading…
Reference in a new issue