From e8c4add1a3555ee34f69c92f15bbeb2d4f61fe2e Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 15 Oct 2003 03:30:15 +0000 Subject: [PATCH] Use macro instead of sizeof - p += sizeof(HEADER); + p += NS_HFIXEDSZ; --- libraries/libldap/dnssrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5