diff options
Diffstat (limited to 'xlators/storage')
-rw-r--r-- | xlators/storage/bdb/src/bdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/storage/bdb/src/bdb.c b/xlators/storage/bdb/src/bdb.c index 1a5ef02b2f3..384094b57ad 100644 --- a/xlators/storage/bdb/src/bdb.c +++ b/xlators/storage/bdb/src/bdb.c @@ -1360,8 +1360,8 @@ dir_read: } } - strncpy (&entry_path[real_path_len+1], dirent->d_name, - tmp_name_len); + memcpy (&entry_path[real_path_len+1], dirent->d_name, + tmp_name_len + 1); op_ret = stat (entry_path, &buf); if (op_ret < 0) { op_errno = errno; |