From: Kurt Zeilenga Date: Wed, 15 Oct 2003 03:30:15 +0000 (+0000) Subject: Use macro instead of sizeof X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~569 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e8c4add1a3555ee34f69c92f15bbeb2d4f61fe2e;p=openldap Use macro instead of sizeof - p += sizeof(HEADER); + p += NS_HFIXEDSZ; --- diff --git a/libraries/libldap/dnssrv.c b/libraries/libldap/dnssrv.c index d9bbcbe81e..ccb8fe9a3e 100644 --- a/libraries/libldap/dnssrv.c +++ b/libraries/libldap/dnssrv.c @@ -213,7 +213,7 @@ int ldap_domain2hostlist( /* Parse out query */ p = reply; - p += sizeof(HEADER); + p += NS_HFIXEDSZ; status = dn_expand(reply, reply + len, p, host, sizeof(host)); if (status < 0) { goto out;