diff options
Diffstat (limited to 'libglusterfs/src/graph.c')
-rw-r--r-- | libglusterfs/src/graph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c index 26dfc4e6b81..03ef55c5892 100644 --- a/libglusterfs/src/graph.c +++ b/libglusterfs/src/graph.c @@ -1264,7 +1264,7 @@ glusterfs_graph_attach (glusterfs_graph_t *orig_graph, char *path, INIT_LIST_HEAD (&volfile_obj->volfile_list); snprintf (volfile_obj->vol_id, sizeof (volfile_obj->vol_id), "%s", xl->volfile_id); - strncpy (volfile_obj->volfile_checksum, sha256_hash, + memcpy (volfile_obj->volfile_checksum, sha256_hash, sizeof (volfile_obj->volfile_checksum)); list_add (&volfile_obj->volfile_list, &this->ctx->volfile_list); |