summaryrefslogtreecommitdiffstats
path: root/mbbsd/record.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/record.c')
-rw-r--r--mbbsd/record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c
index e765198d..b7ed123b 100644
--- a/mbbsd/record.c
+++ b/mbbsd/record.c
@@ -568,7 +568,7 @@ append_record_forward(char *fpath, fileheader_t * record, int size, const char *
int n;
for (n = strlen(fpath) - 1; fpath[n] != '/' && n > 0; n--);
- strncpy(buf, fpath, n + 1);
+ strlcpy(buf, fpath, n + 1);
if (n + sizeof(".forward") > sizeof(buf))
return -1;
strcpy(buf + n + 1, ".forward");