]> git.sur5r.net Git - openldap/commitdiff
Change unsigned long cast of offset to size_t in ldap_build_filter()
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 2 Aug 1999 05:51:04 +0000 (05:51 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 2 Aug 1999 05:51:04 +0000 (05:51 +0000)
libraries/libldap/getfilter.c

index e3cb60fd0ac3a3eca75a04b957ee7323f35f8109..b0a181a8ef4185c57739d7936da8dd1ebcc9f5bd 100644 (file)
@@ -398,15 +398,14 @@ ldap_build_filter(
                *f++ = *p;
            }
                
-           if ( (unsigned long) (f - filtbuf) > buflen ) {
+           if ( (size_t) (f - filtbuf) > buflen ) {
                /* sanity check */
                --f;
                break;
            }
        }
 
-       if ( suffix != NULL && (
-               (unsigned long) ( f - filtbuf ) < buflen ) )
+       if ( suffix != NULL && ( (size_t) (f - filtbuf) < buflen ) )
        {
            strcpy( f, suffix );
        } else {