summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2010-04-06 10:23:23 -0400
committerBrian Cully <github.20.shmit@spamgourmet.com>2010-04-06 10:23:23 -0400
commit131997160c259967a3fa833a60278f87f3c783d8 (patch)
tree9c706dc171af14792213a8b84e05c4230fe3d9d3
parent03996f23159710c58ac2131034303412af64ed6b (diff)
downloadnastd-131997160c259967a3fa833a60278f87f3c783d8.tar.gz
nastd-131997160c259967a3fa833a60278f87f3c783d8.zip
server/nastd: Use strncpy instead of snprintf to avoid security warning.
-rw-r--r--server/nastd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/nastd.c b/server/nastd.c
index cbe06eb..3281b7d 100644
--- a/server/nastd.c
+++ b/server/nastd.c
@@ -37,7 +37,7 @@ make_u_csock()
}
memset(&sunix, 0, sizeof(sunix));
- snprintf(sunix.sun_path, sizeof(sunix.sun_path), config.nast_sock);
+ strncpy(sunix.sun_path, config.nast_sock, sizeof(sunix.sun_path));
sunix.sun_family = AF_UNIX;
(void)unlink(sunix.sun_path);