diff options
-rw-r--r-- | innbbsd/bbslink.c | 2 | ||||
-rw-r--r-- | innbbsd/innbbsd.c | 10 | ||||
-rw-r--r-- | innbbsd/inntobbs.c | 3 |
3 files changed, 8 insertions, 7 deletions
diff --git a/innbbsd/bbslink.c b/innbbsd/bbslink.c index d0a4bb21..b7ca2f9d 100644 --- a/innbbsd/bbslink.c +++ b/innbbsd/bbslink.c @@ -1487,7 +1487,7 @@ try_read_outgoing: soverview.group = group; soverview.mtime = atol(mtime); soverview.from = from; - strcpy(subject, str_decode_M3(subject)); + str_decode_M3(subject); soverview.subject = subject; soverview.outgoingtype = outgoingtype; soverview.msgid = msgid; diff --git a/innbbsd/innbbsd.c b/innbbsd/innbbsd.c index f89d95ab..f7fc0fc0 100644 --- a/innbbsd/innbbsd.c +++ b/innbbsd/innbbsd.c @@ -678,11 +678,11 @@ ClientType *client; HEADER[MID_H] && HEADER[NEWSGROUPS_H] ) { char *path1, *path2; int rel ; - strcpy(HEADER[SUBJECT_H], str_decode_M3(HEADER[SUBJECT_H])); - strcpy(HEADER[FROM_H], str_decode_M3(HEADER[FROM_H])); - strcpy(HEADER[DATE_H], str_decode_M3(HEADER[DATE_H])); - strcpy(HEADER[MID_H], str_decode_M3(HEADER[MID_H])); - strcpy(HEADER[NEWSGROUPS_H], str_decode_M3(HEADER[NEWSGROUPS_H])); + str_decode_M3(HEADER[SUBJECT_H]); + str_decode_M3(HEADER[FROM_H]); + str_decode_M3(HEADER[DATE_H]); + str_decode_M3(HEADER[MID_H]); + str_decode_M3(HEADER[NEWSGROUPS_H]); rel = 0; path1 = (char*)mymalloc(strlen(HEADER[PATH_H]) + 3); path2 = (char*)mymalloc(strlen(MYBBSID) + 3); diff --git a/innbbsd/inntobbs.c b/innbbsd/inntobbs.c index b10c44e5..fb854867 100644 --- a/innbbsd/inntobbs.c +++ b/innbbsd/inntobbs.c @@ -205,7 +205,8 @@ echomaillog() if( echomailfp != NULL ) { fprintf(echomailfp,"\n"); fprintf(echomailfp,"發信人: %s, 信區: %s\n", FROM, GROUPS); - fprintf(echomailfp,"標 題: %s\n", str_decode_M3(SUBJECT)); + str_decode_M3(SUBJECT); + fprintf(echomailfp,"標 題: %s\n", SUBJECT); fprintf(echomailfp,"發信站: %s (%s)\n", SITE, DATE); fprintf(echomailfp,"轉信站: %s (%s)\n", PATH, REMOTEHOSTNAME); fflush(echomailfp); |