From dd19aa6ea6f949485cd6df72e525d5e334d73337 Mon Sep 17 00:00:00 2001 From: kcwu Date: Sun, 26 Mar 2006 16:14:28 +0000 Subject: fix bug: clear quote_file[] after use. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3307 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mail.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mbbsd') 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; -- cgit v1.2.3