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:
parent
e05b74b05c
commit
30e1d09584
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue