mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am 3f557f6d: Merge "Fix: appendTwoWords cannot handle MAX_WORD_LENGTH-chars word."
* commit '3f557f6d64c2cc83b0dd75db4488c694032e4ad7': Fix: appendTwoWords cannot handle MAX_WORD_LENGTH-chars word.
This commit is contained in:
commit
b7fbc96480
@ -150,7 +150,7 @@ namespace latinime {
|
||||
}
|
||||
actualLength1 = i + 1;
|
||||
}
|
||||
actualLength1 = min(actualLength1, MAX_WORD_LENGTH - actualLength0 - 1);
|
||||
actualLength1 = min(actualLength1, MAX_WORD_LENGTH - actualLength0);
|
||||
memcpy(&dest[actualLength0], src1, actualLength1 * sizeof(dest[0]));
|
||||
return actualLength0 + actualLength1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user