diff options
author | Ondrej Filip <feela@network.cz> | 2008-08-25 12:06:20 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2008-08-25 12:06:20 +0000 |
commit | 97c6fa02e089e3fb057185fe5937297afc5a11ec (patch) | |
tree | 7271ae484b96ce1d2d35048c42efc7b35b2e8479 /sysdep/unix | |
parent | 73e53eb555a58846c4d2db6464d41d1761a60169 (diff) |
Previous patch reverted. :-(
Diffstat (limited to 'sysdep/unix')
-rw-r--r-- | sysdep/unix/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index 338edf43..7dcca21a 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -866,7 +866,7 @@ sk_open_unix(sock *s, char *name) goto bad; unlink(name); sa.sun_family = AF_UNIX; - strncpy(sa.sun_path, name, sizeof(sa.sun_path)); + strcpy(sa.sun_path, name); if (bind(fd, (struct sockaddr *) &sa, SUN_LEN(&sa)) < 0) ERR("bind"); if (listen(fd, 8)) |