summaryrefslogtreecommitdiffstats
path: root/mbbsd/announce.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/announce.c')
-rw-r--r--mbbsd/announce.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c
index f294140b..81944e9e 100644
--- a/mbbsd/announce.c
+++ b/mbbsd/announce.c
@@ -673,8 +673,7 @@ a_pastetagpost(menu_t * pm, int mode)
setbfile(buf, bh->brdname, fhdr.filename);
if (dashf(buf)) {
- strncpy(title + 3, fhdr.title, TTLEN - 3);
- title[TTLEN] = '\0';
+ strlcpy(title + 3, fhdr.title, sizeof(title) - 3);
a_copyitem(buf, title, 0, 0);
if (mode) {
mode--;