diff options
author | Eduardo Chappa <chappa@washington.edu> | 2022-06-05 13:33:52 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2022-06-05 13:33:52 -0600 |
commit | 1f26808faba44fe9140d19cf93d7b8560513e5ec (patch) | |
tree | 833f30ad60753fb36535454e469a463dd224db04 /pico | |
parent | f95e2d179774739a885468144e68de047245ada5 (diff) | |
download | alpine-1f26808faba44fe9140d19cf93d7b8560513e5ec.tar.xz |
* Crash in PC-Alpine when postponing a message. Reported by Paolo Ienne.
Diffstat (limited to 'pico')
-rw-r--r-- | pico/display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pico/display.c b/pico/display.c index e0cf4c5a..468de2ce 100644 --- a/pico/display.c +++ b/pico/display.c @@ -1065,7 +1065,7 @@ updatelinecolor (int row, CELL vline[], CELL pline[], short *flags, int len) * are spaces or not. */ cp3 = &vline[0]; - for(w = 0; w < term.t_ncol; cp3++){ + for(w = 0; w < term.t_ncol && cp3 < &vline[term.t_ncol]; cp3++){ int ww; ww = wcellwidth((UCS) cp3->c); |