From 3c0b1ef56572eaebf1d8fe8d37eca6f3da804965 Mon Sep 17 00:00:00 2001 From: Andrew Leary Date: Mon, 3 Oct 2016 20:23:57 -0400 Subject: [PATCH] Fixed a bug with the use of an external editor, and removed the limitation that messages must have at least two lines. --- ChangeLog | 4 ++++ mbsebbs/mail.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1c524062..5632c54b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,10 @@ v1.0.6.9 28-Sep-2016 - Andrew Leary 1. Fixed compiler warnings while building the BBS. Thanks to Ken Bowley for the patches. + 2. Fixed a bug with the use of an external editor, and removed + a limitation that forced a message to have at least two lines. + Thanks to Ken Bowley for these patches as well. + v1.0.6.8 20-Jul-2016 - Andrew Leary 1. Fixed the SETUP.sh script to handle installing on fresh diff --git a/mbsebbs/mail.c b/mbsebbs/mail.c index 3ded5b24..95d046c2 100644 --- a/mbsebbs/mail.c +++ b/mbsebbs/mail.c @@ -817,7 +817,7 @@ int Save_Msg(int IsReply, faddr *Dest) Syslog('b', "Entering Save_Msg() Line=%d, Dest=%s", Line, (Dest == NULL)?"NULL":"valid"); - if (Line < 2) + if (Line < 1) return TRUE; /* Saving message to disk */ @@ -2939,7 +2939,7 @@ int Ext_Edit() i++; } changed=TRUE; - Line=i; + Line=i-1; fclose(fd); } free(l);