]> Zhao Yanbai Git Server - minix.git/commitdiff
Make struct sockaddr at least as big as struct sockaddr_in
authorPhilip Homburg <philip@cs.vu.nl>
Fri, 4 Nov 2005 17:07:39 +0000 (17:07 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Fri, 4 Nov 2005 17:07:39 +0000 (17:07 +0000)
include/sys/socket.h

index 91400526c760422695d71d6ea2ee4a82d625e559..aacb0540b22e4197d709554231f875d0c9ee2779 100644 (file)
@@ -43,7 +43,7 @@ typedef int32_t socklen_t;
 struct sockaddr
 {
        sa_family_t     sa_family;
-       char            sa_data[1];
+       char            sa_data[8];     /* Big enough for sockaddr_in */
 };
 
 _PROTOTYPE( int accept, (int _socket,