]> git.sur5r.net Git - openldap/commitdiff
Use macro instead of sizeof
authorKurt Zeilenga <kurt@openldap.org>
Wed, 15 Oct 2003 03:30:15 +0000 (03:30 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 15 Oct 2003 03:30:15 +0000 (03:30 +0000)
-       p += sizeof(HEADER);
+       p += NS_HFIXEDSZ;

libraries/libldap/dnssrv.c

index d9bbcbe81edc6d3ab5364b065ffb9f35545a5db1..ccb8fe9a3e18786a87df15613c9d6f1fcdfa6169 100644 (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;