mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-10 08:39:29 +00:00
Fixes (#3032)
This commit is contained in:
@@ -81,7 +81,8 @@ struct header_t {
|
||||
struct tags_t {
|
||||
constexpr tags_t(
|
||||
const std::string& title_str) {
|
||||
strcpy(title, title_str.c_str());
|
||||
strncpy(title, title_str.c_str(), sizeof(title) - 1);
|
||||
title[sizeof(title) - 1] = '\0';
|
||||
cksize = sizeof(tags_t) - 8;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user