usp10: Correct read overflow in ScriptBreak found by Valgrind.

oldstable
Aric Stewart 2011-10-19 12:34:26 -05:00 committed by Alexandre Julliard
parent ed6dea5d64
commit 250a132545
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ void BREAK_line(const WCHAR *chars, int count, const SCRIPT_ANALYSIS *sa, SCRIPT
debug_output_breaks(break_before,count); debug_output_breaks(break_before,count);
/* LB31 */ /* LB31 */
for (i = 0; i < count; i++) for (i = 0; i < count-1; i++)
else_break(&break_before[i+1],b_s); else_break(&break_before[i+1],b_s);
debug_output_breaks(break_before,count); debug_output_breaks(break_before,count);