[code] Prevent script name extension edition.

Change-Id: I4ac8d032fd88b853670afeebaecc8d6fd5ef981d
This commit is contained in:
Léa Saviot
2017-10-30 16:37:12 +01:00
committed by Romain Goyet
parent 95c6d9532b
commit 6ee47d6168
6 changed files with 19 additions and 7 deletions

View File

@@ -77,7 +77,7 @@ void ConsoleController::removeExtensionIfAny(char * name) {
if (nameLength<4) {
return;
}
if (strcmp(&name[nameLength-3], ".py") == 0) {
if (strcmp(&name[nameLength-3], ScriptStore::k_scriptExtension) == 0) {
name[nameLength-3] = 0;
}
}