[apps/ion] Use the new storage API

This commit is contained in:
Léa Saviot
2018-09-27 15:13:38 +02:00
committed by Émilie Feral
parent 6113f97027
commit 52a21198a4
7 changed files with 28 additions and 6 deletions

View File

@@ -335,7 +335,7 @@ void ConsoleController::autoImportScript(Script script, bool force) {
assert(strlen(k_importCommand1) + strlen(script.name()) - strlen(ScriptStore::k_scriptExtension) + strlen(k_importCommand2) + 1 <= k_maxImportCommandSize);
char command[k_maxImportCommandSize];
size_t currentChar = strlcpy(command, k_importCommand1, k_maxImportCommandSize);
const char * scriptName = script.name();
const char * scriptName = script.fullName();
currentChar += strlcpy(command+currentChar, scriptName, k_maxImportCommandSize - currentChar);
// Remove the name extension ".py"
currentChar -= strlen(ScriptStore::k_scriptExtension);