From 4090fbd716e44c899e25e4bfa3d1376620051b62 Mon Sep 17 00:00:00 2001 From: kcwu Date: Sat, 6 Sep 2003 19:53:46 +0000 Subject: fix bug git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1167 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mbbsd') 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++){ -- cgit v1.2.3