From ed8740116938029a00b222399fdf6d4279e993cf Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 10 Nov 1995 06:38:23 +0000 Subject: [PATCH] (update_line): Avoid indexing into obody by -1. --- src/dispnew.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispnew.c b/src/dispnew.c index dbedca2a817..35fba210be5 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -1613,7 +1613,7 @@ update_line (frame, vpos) 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 -- 2.39.2