diff options
Diffstat (limited to 'pith/mailindx.c')
-rw-r--r-- | pith/mailindx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pith/mailindx.c b/pith/mailindx.c index 0a6eaaf1..323e451d 100644 --- a/pith/mailindx.c +++ b/pith/mailindx.c @@ -2066,7 +2066,8 @@ format_index_index_line(INDEXDATA_S *idata) cdesc->ctype); } else{ - if((mc=mail_elt(idata->stream,idata->rawno)) && mc->flagged) + if(idata->rawno > 0L && idata->rawno <= idata->stream->nmsgs + && (mc=mail_elt(idata->stream,idata->rawno)) && mc->flagged) to_us = '*'; /* simple */ else if(!IS_NEWS(idata->stream)){ for(addr = fetch_to(idata); addr; addr = addr->next) |