From e15c926444f03008570999e716d0d0168c21e055 Mon Sep 17 00:00:00 2001 From: kcwu Date: Fri, 20 May 2005 11:58:40 +0000 Subject: 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 --- mbbsd/mail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3