(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 08aa328934
commit bc56b0edf7

View File

@@ -294,7 +294,7 @@ static void HandleBiDiAndArabicShapes(char *buffer, const char *lastof)
char *t = buffer; char *t = buffer;
size_t length = 0; size_t length = 0;
while (*t != '\0' && length < lengthof(input_output)) { while (*t != '\0' && length < lengthof(input_output) - 1) {
WChar tmp; WChar tmp;
t += Utf8Decode(&tmp, t); t += Utf8Decode(&tmp, t);
input_output[length++] = tmp; input_output[length++] = tmp;