summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/storage/posix')
-rw-r--r--xlators/storage/posix/src/posix-handle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix-handle.c b/xlators/storage/posix/src/posix-handle.c
index 2c9277e7f3a..a06e6430f0c 100644
--- a/xlators/storage/posix/src/posix-handle.c
+++ b/xlators/storage/posix/src/posix-handle.c
@@ -108,7 +108,7 @@ posix_handle_pump (xlator_t *this, char *buf, int len, int maxlen,
if ((ret == 8) && memcmp (linkname, "../../..", 8) == 0) {
if (strcmp (base_str, buf) == 0) {
- strncpy (buf + pfx_len, "..", 3);
+ strcpy (buf + pfx_len, "..");
}
goto out;
}