stack buffer overflow bug fix
This commit is contained in:
parent
28a31e42a1
commit
ef17789c5a
|
@ -616,7 +616,7 @@ with size......... | /
|
|||
uint16_t mid = (uint16_t)msg_id;
|
||||
get_logical_time();
|
||||
float stime = (float)logical_clock.toSec();
|
||||
uint8_t r8header[4];
|
||||
uint8_t r8header[8];
|
||||
uint64_t rheader = 0;
|
||||
memcpy(r8header, &mtype, sizeof(uint8_t));
|
||||
memcpy(r8header+1, &mid, sizeof(uint16_t));
|
||||
|
|
Loading…
Reference in New Issue