notification: Initialise message
Prevents reading uninitialised memory if notification gets cut off due to being more than 100 chars. The last character is assumed to be \0, but it is actually uninitialised.
This commit is contained in:
parent
11ade64166
commit
a7746d3a31
|
|
@ -30,7 +30,7 @@ namespace Pinetime {
|
||||||
Id id = 0;
|
Id id = 0;
|
||||||
bool valid = false;
|
bool valid = false;
|
||||||
uint8_t size;
|
uint8_t size;
|
||||||
std::array<char, MessageSize + 1> message;
|
std::array<char, MessageSize + 1> message {};
|
||||||
Categories category = Categories::Unknown;
|
Categories category = Categories::Unknown;
|
||||||
|
|
||||||
const char* Message() const;
|
const char* Message() const;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue