Use macro instead of sizeof

-       p += sizeof(HEADER);
+       p += NS_HFIXEDSZ;
This commit is contained in:
Kurt Zeilenga 2003-10-15 03:30:15 +00:00
parent f1e5201bf7
commit e8c4add1a3

View File

@ -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;