summaryrefslogtreecommitdiff
path: root/pico
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2022-06-05 13:33:52 -0600
committerEduardo Chappa <chappa@washington.edu>2022-06-05 13:33:52 -0600
commit1f26808faba44fe9140d19cf93d7b8560513e5ec (patch)
tree833f30ad60753fb36535454e469a463dd224db04 /pico
parentf95e2d179774739a885468144e68de047245ada5 (diff)
downloadalpine-1f26808faba44fe9140d19cf93d7b8560513e5ec.tar.xz
* Crash in PC-Alpine when postponing a message. Reported by Paolo Ienne.
Diffstat (limited to 'pico')
-rw-r--r--pico/display.c2
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);