1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-15 04:15:26 +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

@ -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;