Fix model names and indexes on storage creation

This commit is contained in:
Raphael Coeffic
2021-11-10 11:07:03 +01:00
parent 3717e37e3f
commit bcdb9bd311
5 changed files with 25 additions and 7 deletions
+2 -1
View File
@@ -38,7 +38,8 @@ ModelsList modelslist;
ModelCell::ModelCell(const char* name) : valid_rfData(false)
{
strncpy(modelFilename, name, sizeof(modelFilename));
strncpy(modelFilename, name, sizeof(modelFilename)-1);
modelFilename[sizeof(modelFilename)-1] = '\0';
}
ModelCell::ModelCell(const char* name, uint8_t len) : valid_rfData(false)