refactor(cpn): introduce BoundedString<N> for ModelData string fields (#7438)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
68873e2955
commit
9326a202b2
@@ -178,9 +178,9 @@ bool LabelsStorageFormat::load(RadioData & radioData)
|
||||
}
|
||||
|
||||
model.modelIndex = modelIdx;
|
||||
strncpy(model.filename, mc.filename.c_str(), sizeof(model.filename)-1);
|
||||
model.filename = mc.filename;
|
||||
|
||||
if (hasLabels && !strncmp(radioData.generalSettings.currModelFilename, model.filename, sizeof(model.filename)))
|
||||
if (hasLabels && model.filename == radioData.generalSettings.currModelFilename)
|
||||
radioData.generalSettings.currModelIndex = modelIdx;
|
||||
|
||||
model.used = true;
|
||||
|
||||
Reference in New Issue
Block a user