summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pttbbs/mbbsd/bbs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index c603248d..e3c96c4f 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/mbbsd/bbs.c
@@ -1045,7 +1045,8 @@ log_crosspost_in_allpost(const char *brd, const fileheader_t *postfile) {
strlcpy(fh.owner, cuser.userid, sizeof(fh.owner));
strlcpy(genbuf, title, len);
DBCS_safe_trim(genbuf);
- snprintf(fh.title, "%s%-*.*s.%sªO", str_forward, len, len, genbuf, brd);
+ snprintf(fh.title, sizeof(fh.title),
+ "%s%-*.*s.%sªO", str_forward, len, len, genbuf, brd);
setbdir(genbuf, BN_ALLPOST);
if (append_record(genbuf, &fh, sizeof(fileheader_t)) != -1) {