mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-02 20:34:41 +00:00
(svn r15637) -Fix: when you try to protect something from doing something it shouldn't be doing, make sure that the actions happening after that, doesn't start doing what it shouldn't be doing. This of course would only happen in rare corner cases.
This commit is contained in:
parent
81dde09c27
commit
3adc0d77b8
@ -294,7 +294,7 @@ static void HandleBiDiAndArabicShapes(char *buffer, const char *lastof)
|
||||
|
||||
char *t = buffer;
|
||||
size_t length = 0;
|
||||
while (*t != '\0' && length < lengthof(input_output)) {
|
||||
while (*t != '\0' && length < lengthof(input_output) - 1) {
|
||||
WChar tmp;
|
||||
t += Utf8Decode(&tmp, t);
|
||||
input_output[length++] = tmp;
|
||||
|
Loading…
Reference in New Issue
Block a user