changeset 13448:89f89cadc30d

(update_line): Avoid indexing into obody by -1.
author Richard M. Stallman <rms@gnu.org>
date Fri, 10 Nov 1995 06:38:23 +0000
parents 8c89b569cfa9
children 2e9306561b80
files src/dispnew.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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