summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-05-20 19:58:40 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-05-20 19:58:40 +0800
commite15c926444f03008570999e716d0d0168c21e055 (patch)
tree45206085221b7ae77376d773aea1bd9d78b60f58 /mbbsd/mail.c
parent3290687091c91cff888514aa4cc93a0db94e9029 (diff)
downloadpttbbs-e15c926444f03008570999e716d0d0168c21e055.tar
pttbbs-e15c926444f03008570999e716d0d0168c21e055.tar.gz
pttbbs-e15c926444f03008570999e716d0d0168c21e055.tar.bz2
pttbbs-e15c926444f03008570999e716d0d0168c21e055.tar.lz
pttbbs-e15c926444f03008570999e716d0d0168c21e055.tar.xz
pttbbs-e15c926444f03008570999e716d0d0168c21e055.tar.zst
pttbbs-e15c926444f03008570999e716d0d0168c21e055.zip
fix bug: the condition to find author when reply
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2730 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r--mbbsd/mail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index 58ffc4f3..ae841aa1 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -945,7 +945,7 @@ mail_reply(int ent, const fileheader_t * fhdr, const char *direct)
fclose(fp);
}
t = strtok(genbuf, str_space);
- if (!strcmp(t, str_author1) || !strcmp(t, str_author2))
+ if (t && (!strcmp(t, str_author1) || !strcmp(t, str_author2)))
strlcpy(uid, strtok(NULL, str_space), sizeof(uid));
else {
vmsg("¿ù»~: §ä¤£¨ì§@ªÌ¡C");