aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c
index 989511967ce..29bf43e0f29 100644
--- a/src/process.c
+++ b/src/process.c
@@ -88,6 +88,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
88#endif 88#endif
89 89
90#include <c-ctype.h> 90#include <c-ctype.h>
91#include <flexmember.h>
91#include <sig2str.h> 92#include <sig2str.h>
92#include <verify.h> 93#include <verify.h>
93 94
@@ -3807,8 +3808,8 @@ usage: (make-network-process &rest ARGS) */)
3807 struct gaicb gaicb; 3808 struct gaicb gaicb;
3808 struct addrinfo hints; 3809 struct addrinfo hints;
3809 char str[FLEXIBLE_ARRAY_MEMBER]; 3810 char str[FLEXIBLE_ARRAY_MEMBER];
3810 } *req = xmalloc (offsetof (struct req, str) 3811 } *req = xmalloc (FLEXSIZEOF (struct req, str,
3811 + hostlen + 1 + portstringlen + 1); 3812 hostlen + 1 + portstringlen + 1));
3812 dns_request = &req->gaicb; 3813 dns_request = &req->gaicb;
3813 dns_request->ar_name = req->str; 3814 dns_request->ar_name = req->str;
3814 dns_request->ar_service = req->str + hostlen + 1; 3815 dns_request->ar_service = req->str + hostlen + 1;