diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-07-06 14:06:02 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-07-06 14:06:02 +0800 |
commit | ecdf6203e40698b62611c1099bb010cdd5924924 (patch) | |
tree | 66425bf8800a3ea38a8d18635d8c4f8ad210f2cc /mbbsd/mail.c | |
parent | 067faff5d4aa230c86320393d03d8eb1d4303f7a (diff) | |
download | pttbbs-ecdf6203e40698b62611c1099bb010cdd5924924.tar pttbbs-ecdf6203e40698b62611c1099bb010cdd5924924.tar.gz pttbbs-ecdf6203e40698b62611c1099bb010cdd5924924.tar.bz2 pttbbs-ecdf6203e40698b62611c1099bb010cdd5924924.tar.lz pttbbs-ecdf6203e40698b62611c1099bb010cdd5924924.tar.xz pttbbs-ecdf6203e40698b62611c1099bb010cdd5924924.tar.zst pttbbs-ecdf6203e40698b62611c1099bb010cdd5924924.zip |
help update, fix mail title unchanged outside vedit (partial?)
and 'search for recommends' patch by ledia@ptt, thanks.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2903 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r-- | mbbsd/mail.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c index 5e9be2fe..e0195689 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -316,12 +316,13 @@ do_send(const char *userid, const char *title) sethomepath(genbuf, userid); stampfile(genbuf, &mhdr); strlcpy(mhdr.owner, cuser.userid, sizeof(mhdr.owner)); - strncpy(mhdr.title, save_title, TTLEN); if (vedit(genbuf, YEA, NULL) == -1) { unlink(genbuf); clear(); return -2; } + /* why not make title here? */ + strncpy(mhdr.title, save_title, TTLEN); clear(); sethomefile(fpath, userid, FN_OVERRIDES); i = belong(fpath, cuser.userid); |