From: Hallvard Furuseth Date: Mon, 2 Aug 1999 05:51:04 +0000 (+0000) Subject: Change unsigned long cast of offset to size_t in ldap_build_filter() X-Git-Tag: TWEB_OL_BASE~328 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8a9b9292de3f7a69bf9bde4f40034432b9cf9bff;p=openldap Change unsigned long cast of offset to size_t in ldap_build_filter() --- diff --git a/libraries/libldap/getfilter.c b/libraries/libldap/getfilter.c index e3cb60fd0a..b0a181a8ef 100644 --- a/libraries/libldap/getfilter.c +++ b/libraries/libldap/getfilter.c @@ -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 {