1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-15 04:15:26 +03:00

[Taranis] Possibility to rename a directory in SD Manager

This commit is contained in:
bsongis 2015-03-09 18:50:10 +01:00
parent 0eeb0437db
commit 2e514565cc
13 changed files with 71 additions and 21 deletions

View file

@ -208,12 +208,8 @@ char *strAppendFilename(char *dest, const char *filename, const int size)
char *getFileExtension(char *filename, int size)
{
for (int i=0; i<size-LEN_FILE_EXTENSION; ++i) {
if (filename[i] == '.') {
for (int j=i+1; j<size; ++j) {
if (filename[j] == '\0') {
return &filename[i];
}
}
if (filename[i] == '.' || filename[i] == '\0') {
return &filename[i];
}
}
return NULL;