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

Adresses comments in #2036 - Thanks to Damjan for the review!

This commit is contained in:
bsongis 2015-01-22 20:17:26 +01:00
parent e05b74b05c
commit 30e1d09584
2 changed files with 3 additions and 1 deletions

View file

@ -166,6 +166,7 @@ const char *fileCopy(const char *filename, const char *srcDir, const char *destD
result = f_open(&dstFile, path, FA_CREATE_ALWAYS | FA_WRITE);
if (result != FR_OK) {
f_close(&srcFile);
return SDCARD_ERROR(result);
}

View file

@ -177,7 +177,8 @@ char *strAppend(char *dest, const char *source, int len)
{
while ((*dest++ = *source++)) {
if (--len == 0) {
*dest++ = '\0';
*dest = '\0';
return dest;
}
}
return dest - 1;