diff options
-rw-r--r-- | mbbsd/mail.c | 2 |
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"); |