[Horus] A few TODOs fixed (some sprintf removed)

This commit is contained in:
Bertrand Songis
2016-01-28 23:12:26 +01:00
parent d6c17a7ead
commit b7e4a3c63b
7 changed files with 45 additions and 34 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
* Copyright (C) OpenTX
*
* Based on code named
* th9x - http://code.google.com/p/th9x
* th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x
*
@@ -94,7 +94,7 @@ int findNextFileIndex(char * filename, const char * directory)
char extension[LEN_FILE_EXTENSION+1];
strncpy(extension, getFileExtension(filename), sizeof(extension));
do {
char * pos = strAppendNumber(indexPos, ++index);
char * pos = strAppendNumber(indexPos, ++index, 2);
strAppend(pos, extension);
if (!isFileAvailable(filename, directory)) {
return index;