# HG changeset patch # User Richard M. Stallman # Date 778537032 0 # Node ID 020c4d5b685baaf02cbd27dc9eda5034a7df4e15 # Parent 0d1aada57ac96c556806458a7be4dde10bb35b72 (display_text_line): Don't overrun the charstart area. diff -r 0d1aada57ac9 -r 020c4d5b685b src/xdisp.c --- a/src/xdisp.c Thu Sep 01 21:18:15 1994 +0000 +++ b/src/xdisp.c Fri Sep 02 20:17:12 1994 +0000 @@ -2309,7 +2309,7 @@ if (p1 != p1prev) { int *p2x = &charstart[p1prev - p1start]; - int *p2 = &charstart[p1 - p1start]; + int *p2 = &charstart[(p1 < endp ? p1 : endp) - p1start]; /* The window's left column should always contain a character position.