From d7ebb697457fc4b8562bb1475a6832f1badb15f8 Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Mon, 29 Jan 2018 17:02:07 +0530 Subject: replace strcat and strcpy with their secure versions Change-Id: If98ce7b7e50901ee130bbe190a12664ec0adb8c2 Signed-off-by: Prasanna Kumar Kalever --- daemon/gluster-blockd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'daemon') 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)", -- cgit