Merge upstream/dev (3 commits) [upstream-sync]
pub-release / release (push) Successful in 41m13s

This commit is contained in:
upstream-sync-bot committed 2026-11-28 05:05:09 +00:00
commit 5a44b5ff52
4 files changed
+9 -8

No files matched your search

+3 -3
View File
@@ -264,7 +264,7 @@ public:
auto p = &recent[recent_next_idx];
recent_next_idx = (recent_next_idx + 1) % UI_RECENT_LIST_SIZE;
strcpy(p->name, contact.name);
StrHelper::strncpy(p->name, contact.name, sizeof(p->name));
p->recv_timestamp = _rtc->getCurrentTime();
}
@@ -741,9 +741,9 @@ public:
auto p = &unread[head];
p->timestamp = _rtc->getCurrentTime();
if (path_count == 0xFF) {
sprintf(p->origin, "(D) %s:", from_name);
snprintf(p->origin, sizeof(p->origin), "(D) %s:", from_name);
} else {
sprintf(p->origin, "(%d) %s:", (uint32_t) path_count, from_name);
snprintf(p->origin, sizeof(p->origin), "(%d) %s:", (uint32_t) path_count, from_name);
}
StrHelper::strncpy(p->msg, msg, sizeof(p->msg));
}