summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-09-07 03:53:46 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-09-07 03:53:46 +0800
commit4090fbd716e44c899e25e4bfa3d1376620051b62 (patch)
tree2b15c7444fbebf9515baa54bdf0e909a08c77f3d /mbbsd
parentfc05c7ec6b8d7bbd2fbad6426c2e5d23994aea0b (diff)
downloadpttbbs-4090fbd716e44c899e25e4bfa3d1376620051b62.tar
pttbbs-4090fbd716e44c899e25e4bfa3d1376620051b62.tar.gz
pttbbs-4090fbd716e44c899e25e4bfa3d1376620051b62.tar.bz2
pttbbs-4090fbd716e44c899e25e4bfa3d1376620051b62.tar.lz
pttbbs-4090fbd716e44c899e25e4bfa3d1376620051b62.tar.xz
pttbbs-4090fbd716e44c899e25e4bfa3d1376620051b62.tar.zst
pttbbs-4090fbd716e44c899e25e4bfa3d1376620051b62.zip
fix bug
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1167 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c2
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++){