Merge branch 'SQC-15_online' of https://github.com/CegepSTH/SQCSim2023 into SQC-15_online
This commit is contained in:
commit
57bfacf942
@ -930,12 +930,8 @@ bool netprot::Deserialize(Chat* chat, char* buf, uint32_t *buflen) {
|
|||||||
if (messsize > 140)
|
if (messsize > 140)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
std::cout << messsize << ": " << &buf[1 + sizeof(uint64_t) * 3] << std::endl;
|
|
||||||
|
|
||||||
char* ciboire = &buf[1 + sizeof(uint64_t) * 3];
|
char* ciboire = &buf[1 + sizeof(uint64_t) * 3];
|
||||||
|
|
||||||
std::cout << ciboire << std::endl;
|
|
||||||
|
|
||||||
strcpy(chat->mess, 140, ciboire);
|
strcpy(chat->mess, 140, ciboire);
|
||||||
|
|
||||||
//*buflen = messsize + sizeof(uint64_t) * 3 + 1;
|
//*buflen = messsize + sizeof(uint64_t) * 3 + 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user