summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2018-12-19 10:25:44 +0530
committerSunny Kumar <sunkumar@redhat.com>2018-12-20 09:33:59 +0000
commitf2c2c906c0a81d24b14832974994604ea4569e0d (patch)
tree58e290a6462a8c025df044d0afa3fa3bbee11e2b /xlators/storage/posix
parente1f92176a8d372e99386c0f007d6a38c0a54ca5b (diff)
all: handle string-overflow warnings of coverity
updates: bz#789278 Change-Id: I7de800b90a614e3666e965b0cafc70026a844b2d Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'xlators/storage/posix')
-rw-r--r--xlators/storage/posix/src/posix-helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c
index 208e319b336..922170c3e33 100644
--- a/xlators/storage/posix/src/posix-helpers.c
+++ b/xlators/storage/posix/src/posix-helpers.c
@@ -367,7 +367,7 @@ _posix_get_marker_all_contributions(posix_xattr_filler_t *filler)
list_offset = 0;
while (remaining_size > 0) {
- strcpy(key, list + list_offset);
+ strncpy(key, list + list_offset, sizeof(key));
if (fnmatch(marker_contri_key, key, 0) == 0) {
ret = _posix_xattr_get_set_from_backend(filler, key);
}