From: Philip Homburg Date: Fri, 4 Nov 2005 17:07:39 +0000 (+0000) Subject: Make struct sockaddr at least as big as struct sockaddr_in X-Git-Tag: v3.1.2a~518 X-Git-Url: http://zhaoyanbai.com/repos/%22https:/www.google.com/jsapi/static/mdoc.3.html?a=commitdiff_plain;h=8950d7eae7059f774288e25a72293be27593354e;p=minix.git Make struct sockaddr at least as big as struct sockaddr_in --- diff --git a/include/sys/socket.h b/include/sys/socket.h index 91400526c..aacb0540b 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -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,