OSSP CVS Repository

ossp - Check-in [1157]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 1157
Date: 2001-Oct-11 16:36:29 (local)
2001-Oct-11 14:36:29 (UTC)
User:rse
Branch:
Comment: fix two nasty bugs
Tickets:
Inspections:
Files:
ossp-pkg/sa/sa.c      1.30 -> 1.31     2 inserted, 1 deleted

ossp-pkg/sa/sa.c 1.30 -> 1.31

--- sa.c 2001/10/10 19:32:29     1.30
+++ sa.c 2001/10/11 14:36:29     1.31
@@ -478,7 +478,7 @@
         }
         else
             cp = un.sun_path;
-        memcpy(un.sun_path, cpPath, n+1);
+        memcpy(cp, cpPath, n+1);
         un.sun_family = AF_LOCAL;
 
         /* provide results */
@@ -1201,6 +1201,7 @@
     int n;
     fd_set fds;
     union {
+        struct sockaddr_un un;
         struct sockaddr_in sa4;
 #ifdef AF_INET6
         struct sockaddr_in6 sa6;

CVSTrac 2.0.1