From 131997160c259967a3fa833a60278f87f3c783d8 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Tue, 6 Apr 2010 10:23:23 -0400 Subject: server/nastd: Use strncpy instead of snprintf to avoid security warning. --- server/nastd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') 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); -- cgit v1.2.3