# HG changeset patch # User Richard M. Stallman # Date 815985503 0 # Node ID 89f89cadc30d8f87ebd62036df9fe0d578913472 # Parent 8c89b569cfa914d83740d8ee59fb06b71805cedc (update_line): Avoid indexing into obody by -1. diff -r 8c89b569cfa9 -r 89f89cadc30d src/dispnew.c --- a/src/dispnew.c Fri Nov 10 06:34:09 1995 +0000 +++ b/src/dispnew.c Fri Nov 10 06:38:23 1995 +0000 @@ -1613,7 +1613,7 @@ if (! current_frame->highlight[vpos]) { if (!must_write_spaces) - while (obody[olen - 1] == SPACEGLYPH && olen > 0) + while (olen > 0 && obody[olen - 1] == SPACEGLYPH) olen--; } else