Warning cleanup: signed meets unsigned.

This commit is contained in:
Hallvard Furuseth 2008-10-13 08:29:21 +00:00
parent 182c2931c4
commit e8afbb70fc

View File

@ -1082,7 +1082,9 @@ idassert-authzFrom "dn:<rootdn>"
return 1;
}
if ( snprintf( binddn, sizeof( binddn ), "binddn=%s", argv[ 1 ] ) >= sizeof( binddn ) ) {
if ( sizeof( binddn ) <= (unsigned) snprintf( binddn,
sizeof( binddn ), "binddn=%s", argv[ 1 ] ))
{
Debug( LDAP_DEBUG_ANY, "%s: line %d: \"pseudorootdn\" too long.\n",
fname, lineno, 0 );
return 1;