(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.

pull/155/head
truebrain 16 years ago
parent 08aa328934
commit bc56b0edf7

@ -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…
Cancel
Save