aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-11-10 06:38:23 +0000
committerRichard M. Stallman1995-11-10 06:38:23 +0000
commited8740116938029a00b222399fdf6d4279e993cf (patch)
tree19cc35409b5abeccbe33063969b8da0df5d2156d /src
parent8450690adc64e9e5b0662e32676a6342a1fdd0f0 (diff)
downloademacs-ed8740116938029a00b222399fdf6d4279e993cf.tar.gz
emacs-ed8740116938029a00b222399fdf6d4279e993cf.zip
(update_line): Avoid indexing into obody by -1.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c2
1 files changed, 1 insertions, 1 deletions
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)
1613 if (! current_frame->highlight[vpos]) 1613 if (! current_frame->highlight[vpos])
1614 { 1614 {
1615 if (!must_write_spaces) 1615 if (!must_write_spaces)
1616 while (obody[olen - 1] == SPACEGLYPH && olen > 0) 1616 while (olen > 0 && obody[olen - 1] == SPACEGLYPH)
1617 olen--; 1617 olen--;
1618 } 1618 }
1619 else 1619 else