diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-27 00:14:28 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-27 00:14:28 +0800 |
commit | dd19aa6ea6f949485cd6df72e525d5e334d73337 (patch) | |
tree | de2bee1cbca22d0158cfbe2e61d115b3f649a3ef | |
parent | bf6c1a96179610e03963ce4950ba70cc617a3ab5 (diff) | |
download | pttbbs-dd19aa6ea6f949485cd6df72e525d5e334d73337.tar pttbbs-dd19aa6ea6f949485cd6df72e525d5e334d73337.tar.gz pttbbs-dd19aa6ea6f949485cd6df72e525d5e334d73337.tar.bz2 pttbbs-dd19aa6ea6f949485cd6df72e525d5e334d73337.tar.lz pttbbs-dd19aa6ea6f949485cd6df72e525d5e334d73337.tar.xz pttbbs-dd19aa6ea6f949485cd6df72e525d5e334d73337.tar.zst pttbbs-dd19aa6ea6f949485cd6df72e525d5e334d73337.zip |
fix bug: clear quote_file[] after use.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3307 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/mail.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c index 6fd322e9..fd3245ae 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -764,6 +764,8 @@ m_forward(int ent, fileheader_t * fhdr, const char *direct) break; } pressanykey(); + quote_user[0]='\0'; + quote_file[0]='\0'; if (strcasecmp(uid, cuser.userid) == 0) return DIRCHANGED; return FULLUPDATE; @@ -1133,6 +1135,8 @@ mail_reply(int ent, fileheader_t * fhdr, const char *direct) strlcpy(uid, strtok(NULL, str_space), sizeof(uid)); // XXX if strtok return NULL else { vmsg("¿ù»~: §ä¤£¨ì§@ªÌ¡C"); + quote_user[0]='\0'; + quote_file[0]='\0'; return FULLUPDATE; } } else @@ -1168,6 +1172,8 @@ mail_reply(int ent, fileheader_t * fhdr, const char *direct) } curredit = ent; pressanykey(); + quote_user[0]='\0'; + quote_file[0]='\0'; if (strcasecmp(uid, cuser.userid) == 0) return DIRCHANGED; return FULLUPDATE; |