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. :-( --- sysdep/unix/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdep') diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index 338edf4..7dcca21 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)) -- cgit v1.2.3