diff options
author | Sunny Kumar <sunkumar@redhat.com> | 2017-12-13 18:26:36 +0530 |
---|---|---|
committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-12-18 15:35:23 +0000 |
commit | 42b8df4704c93b35c8b536074df87065ca8eb5c4 (patch) | |
tree | 2a9c8981149b1b33ac80b019cd24770e5352a6d7 /xlators/mgmt/glusterd/src/glusterd-snapshot-utils.h | |
parent | e65f394a6ad7a417e2d0ccb39f45fe4fe26db008 (diff) |
snapshot: Fix several coverity issues in glusterd-snapshot-utils.c
This patch fixes issues 622, 627, 630, 484, 32, 33 and 34 from [1]
[1] https://download.gluster.org/pub/gluster/glusterfs/static-analysis/master/glusterfs-coverity/2017-10-30-9aa574a5/html/
Change-Id: I4c7ac2b2725474d73643367b38f8bf33eaddd8da
BUG: 789278
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-snapshot-utils.h')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-snapshot-utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.h b/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.h index d619f1d3106..c493aa1ff25 100644 --- a/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.h +++ b/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.h @@ -160,5 +160,6 @@ gd_get_snap_conf_values_if_present (dict_t *opts, uint64_t *sys_hard_limit, int glusterd_get_snap_status_str (glusterd_snap_t *snapinfo, char *snap_status_str); +char *gf_strncpy (char *dest, const char *src, const size_t dest_size); #endif |