(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:
truebrain 2009-03-07 20:53:32 +00:00
parent 81dde09c27
commit 3adc0d77b8
1 changed files with 1 additions and 1 deletions

View File

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