diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2018-01-29 17:02:07 +0530 |
---|---|---|
committer | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2018-02-08 12:30:49 +0530 |
commit | d7ebb697457fc4b8562bb1475a6832f1badb15f8 (patch) | |
tree | 7f17403413bb4d8e9ef5c0b09f0564f406ed45df /daemon | |
parent | 540e81676b1011dcf85fbe5cd6739a4f2143b2ab (diff) |
replace strcat and strcpy with their secure versions
Change-Id: If98ce7b7e50901ee130bbe190a12664ec0adb8c2
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/gluster-blockd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gluster-blockd.c b/daemon/gluster-blockd.c index 863856f..6ccd105 100644 --- a/daemon/gluster-blockd.c +++ b/daemon/gluster-blockd.c @@ -77,7 +77,7 @@ glusterBlockCliThreadProc (void *vargp) } saun.sun_family = AF_UNIX; - strcpy(saun.sun_path, GB_UNIX_ADDRESS); + GB_STRCPYSTATIC(saun.sun_path, GB_UNIX_ADDRESS); if (unlink(GB_UNIX_ADDRESS) && errno != ENOENT) { LOG("mgmt", GB_LOG_ERROR, "unlink(%s) failed (%s)", |