From 97c6fa02e089e3fb057185fe5937297afc5a11ec Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Mon, 25 Aug 2008 12:06:20 +0000 Subject: Previous patch reverted. :-( --- client/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/client.c b/client/client.c index 828b9de..d65ea06 100644 --- a/client/client.c +++ b/client/client.c @@ -254,7 +254,7 @@ server_connect(void) die("Cannot create socket: %m"); bzero(&sa, sizeof(sa)); sa.sun_family = AF_UNIX; - strncpy(sa.sun_path, server_path, sizeof(sa.sun_path)); + strcpy(sa.sun_path, server_path); if (connect(server_fd, (struct sockaddr *) &sa, SUN_LEN(&sa)) < 0) die("Unable to connect to server control socket (%s): %m", server_path); if (fcntl(server_fd, F_SETFL, O_NONBLOCK) < 0) -- cgit v1.2.3