diff options
| author | Richard M. Stallman | 1994-09-02 20:17:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-02 20:17:12 +0000 |
| commit | 125138e22420a1233a7479a612634083d219c113 (patch) | |
| tree | edf2623358c1b291e5b8c9ef952dc91777990df7 /src | |
| parent | 203a5711046d7e1e058dc6ecf6db29d73c4469f0 (diff) | |
| download | emacs-125138e22420a1233a7479a612634083d219c113.tar.gz emacs-125138e22420a1233a7479a612634083d219c113.zip | |
(display_text_line): Don't overrun the charstart area.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index c67eeea232a..4369f5154be 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -2309,7 +2309,7 @@ display_text_line (w, start, vpos, hpos, taboffset) | |||
| 2309 | if (p1 != p1prev) | 2309 | if (p1 != p1prev) |
| 2310 | { | 2310 | { |
| 2311 | int *p2x = &charstart[p1prev - p1start]; | 2311 | int *p2x = &charstart[p1prev - p1start]; |
| 2312 | int *p2 = &charstart[p1 - p1start]; | 2312 | int *p2 = &charstart[(p1 < endp ? p1 : endp) - p1start]; |
| 2313 | 2313 | ||
| 2314 | /* The window's left column should always | 2314 | /* The window's left column should always |
| 2315 | contain a character position. | 2315 | contain a character position. |