tcorrect size - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 493b97a4d9161bd28d498c3e18b42ca3fc7852b8
 (DIR) parent 84edc59152abd140daf817b30a3dbf9012bed2ac
 (HTM) Author: rsc <devnull@localhost>
       Date:   Sat, 18 Feb 2006 13:57:06 +0000
       
       correct size
       
       Diffstat:
         M src/lib9/getnetconn.c               |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/src/lib9/getnetconn.c b/src/lib9/getnetconn.c
       t@@ -91,12 +91,12 @@ getnetconninfo(char *dir, int fd)
                nci->spec = unknown;
                if(nci->dir == nil || nci->root == nil)
                        goto err;
       -        sn = sizeof sn;
       +        sn = sizeof u;
                if(getsockname(fd, &u.sa, &sn) < 0)
                        goto err;
                if(convert(fd, &u.sa, &nci->lsys, &nci->lserv, &nci->laddr) < 0)
                        goto err;
       -        sn = sizeof sn;
       +        sn = sizeof u;
                if(getpeername(fd, &u.sa, &sn) < 0)
                        goto err;
                if(convert(fd, &u.sa, &nci->rsys, &nci->rserv, &nci->raddr) < 0)