diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/nastd.c | 2 |
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); |