We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeb0d23 commit 565ed00Copy full SHA for 565ed00
1 file changed
src/components/ble/ImmediateAlertService.cpp
@@ -63,7 +63,8 @@ int ImmediateAlertService::OnAlertLevelChanged(uint16_t attributeHandle, ble_gat
63
auto* alertString = ToString(alertLevel);
64
65
NotificationManager::Notification notif;
66
- std::memcpy(notif.message.data(), alertString, strlen(alertString));
+ std::memcpy(notif.message.data(), alertString, strlen(alertString) + 1);
67
+ notif.size = strlen(alertString) + 1;
68
notif.category = Pinetime::Controllers::NotificationManager::Categories::SimpleAlert;
69
notificationManager.Push(std::move(notif));
70
0 commit comments