Mercurial > hg > mlmmj
changeset 371:4f66c36c1fb4
Only read one extra char if there is one
author | mmj |
---|---|
date | Mon, 15 Nov 2004 19:45:06 +1100 |
parents | 4280c701047b |
children | fb20c515ea76 |
files | src/mail-functions.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mail-functions.c Mon Nov 15 19:35:51 2004 +1100 +++ b/src/mail-functions.c Mon Nov 15 19:45:06 2004 +1100 @@ -133,7 +133,7 @@ newlinebuf[0] = '\r'; newlinebuf[1] = '\n'; len = 2; - if(*(next+1) == '.') { + if(next < (mapstart + size - 1) && *(next+1) == '.') { newlinebuf[2] = '.'; len = 3; }