summaryrefslogtreecommitdiff
path: root/security/sfs/patches/patch-ab
blob: fc4ad4cbf03a7cd70bc85a40757f48757a22f6b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ab,v 1.1 2006/10/21 11:53:13 agc Exp $

--- ./async/dnsparse.C.orig	2002-06-26 07:36:31.000000000 +0100
+++ ./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)&(((mxlist *)0)->m_mxes[nmx])) + n_chars);
   mxrec *mxrecs = mxl->m_mxes;
   char *np = (char *) &mxrecs[nmx];