summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/src/changelog-helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/changelog/src/changelog-helpers.c')
-rw-r--r--xlators/features/changelog/src/changelog-helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/changelog/src/changelog-helpers.c b/xlators/features/changelog/src/changelog-helpers.c
index 0a29969194e..8dae5efa454 100644
--- a/xlators/features/changelog/src/changelog-helpers.c
+++ b/xlators/features/changelog/src/changelog-helpers.c
@@ -313,7 +313,7 @@ htime_update (xlator_t *this,
ret = -1;
goto out;
}
- strcpy (changelog_path, buffer);
+ strncpy (changelog_path, buffer, PATH_MAX);
len = strlen (changelog_path);
changelog_path[len] = '\0'; /* redundant */