diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 47eeb65b..defd0061 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -760,7 +760,7 @@ edit_post(int ent, fileheader_t * fhdr, char *direct) lock_substitute_record(direct, fhdr, sizeof(*fhdr), ent, LOCK_EX); setbpath(fpath, currboard); stampfile(fpath, &postfile); - strlcpy(genbuf, fhdr->filename, strlen(genbuf)); + strlcpy(genbuf, fhdr->filename, sizeof(genbuf)); setbfile(fpath0, currboard, fhdr->filename); for(num = 2; genbuf[num] != NULL; num++){ |