mirror of
https://github.com/peterantypas/maiana.git
synced 2025-05-28 05:10:40 -07:00
Memory overflow bug
This commit is contained in:
parent
aeb42d15ec
commit
cefd3a2111
@ -32,14 +32,14 @@ void TXPacket::configure(VHFChannel channel)
|
||||
{
|
||||
mTestPacket = false;
|
||||
mChannel = channel;
|
||||
strcpy(mMessageType, "<unknown>");
|
||||
memset(mMessageType, 0, sizeof mMessageType);
|
||||
}
|
||||
|
||||
void TXPacket::configureForTesting(VHFChannel channel, uint16_t numBits)
|
||||
{
|
||||
mTestPacket = true;
|
||||
mChannel = channel;
|
||||
strcpy(mMessageType, "<unknown>");
|
||||
strcpy(mMessageType, "00");
|
||||
mSize = numBits;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user