From: Richard M. Stallman Date: Fri, 10 Nov 1995 06:38:23 +0000 (+0000) Subject: (update_line): Avoid indexing into obody by -1. X-Git-Tag: emacs-19.34~2412 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ed8740116938029a00b222399fdf6d4279e993cf;p=emacs.git (update_line): Avoid indexing into obody by -1. --- 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