2014-08-11 13:27:10 +02:00

14 lines
464 B
Plaintext

$NetBSD: patch-ab,v 1.2 2013/10/15 14:48:38 joerg Exp $
--- async/dnsparse.C.orig 2002-06-26 06:36:31.000000000 +0000
+++ async/dnsparse.C
@@ -323,7 +323,7 @@ dnsparse::tomxlist ()
n_chars += strlen (name) + 1;
ref <mxlist> mxl = refcounted<mxlist, vsize>::alloc
- (offsetof (mxlist, m_mxes[nmx]) + n_chars);
+ (((unsigned int)(size_t)&(((mxlist *)0)->m_mxes[nmx])) + n_chars);
mxrec *mxrecs = mxl->m_mxes;
char *np = (char *) &mxrecs[nmx];