]> git.eshelyaron.com Git - emacs.git/commitdiff
(update_line): Avoid indexing into obody by -1.
authorRichard M. Stallman <rms@gnu.org>
Fri, 10 Nov 1995 06:38:23 +0000 (06:38 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 10 Nov 1995 06:38:23 +0000 (06:38 +0000)
src/dispnew.c

index dbedca2a8179a72c6d2addecd9f6617c7443e450..35fba210be5b4a641378510047938a7bf4228af6 100644 (file)
@@ -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