summaryrefslogtreecommitdiff
path: root/Xtranssock.c
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-08-19 23:53:22 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-08-19 23:53:22 +0000
commit4683f28f0c9d1a1ee0338a32011219ed1fb3c565 (patch)
tree3e616a3e3f2ce8806785b0a0844e258eb1d8fc24 /Xtranssock.c
parent79db37c65905823b66411533152ab54407f04004 (diff)
Bugzilla #3957 <https://bugs.freedesktop.org/show_bug.cgi?id=3957> Patch
#2924 <https://bugs.freedesktop.org/attachment.cgi?id=2924> xtrans changes for AIX (Dan McNichol, IBM) Bugzilla #3957 <https://bugs.freedesktop.org/show_bug.cgi?id=3957> Patch #2925 <https://bugs.freedesktop.org/attachment.cgi?id=2925> xtrans changes for AIX (Dan McNichol, IBM)
Diffstat (limited to 'Xtranssock.c')
-rw-r--r--Xtranssock.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Xtranssock.c b/Xtranssock.c
index eacd807..82d8255 100644
--- a/Xtranssock.c
+++ b/Xtranssock.c
@@ -2228,7 +2228,6 @@ TRANS(SocketUNIXClose) (XtransConnInfo ciptr)
*/
struct sockaddr_un *sockname = (struct sockaddr_un *) ciptr->addr;
- char path[200]; /* > sizeof sun_path +1 */
int ret;
PRMSG (2,"SocketUNIXClose(%p,%d)\n", ciptr, ciptr->fd, 0);
@@ -2240,10 +2239,8 @@ TRANS(SocketUNIXClose) (XtransConnInfo ciptr)
&& sockname->sun_family == AF_UNIX
&& sockname->sun_path[0])
{
- strncpy (path, sockname->sun_path,
- ciptr->addrlen - sizeof (sockname->sun_family));
if (!(ciptr->flags & TRANS_NOUNLINK))
- unlink (path);
+ unlink (sockname->sun_path);
}
return ret;