diff options
author | Ondrej Filip <feela@network.cz> | 2008-08-25 14:06:20 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2008-08-25 14:06:20 +0200 |
commit | 97c6fa02e089e3fb057185fe5937297afc5a11ec (patch) | |
tree | 7271ae484b96ce1d2d35048c42efc7b35b2e8479 /client | |
parent | 73e53eb555a58846c4d2db6464d41d1761a60169 (diff) | |
download | bird-97c6fa02e089e3fb057185fe5937297afc5a11ec.tar bird-97c6fa02e089e3fb057185fe5937297afc5a11ec.zip |
Previous patch reverted. :-(
Diffstat (limited to 'client')
-rw-r--r-- | client/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |