From: Hallvard Furuseth Date: Mon, 13 Oct 2008 08:29:21 +0000 (+0000) Subject: Warning cleanup: signed meets unsigned. X-Git-Tag: ACLCHECK_0~1260 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e8afbb70fcc6a3d3b16a95fb98adf95914aaaa0d;p=openldap Warning cleanup: signed meets unsigned. --- diff --git a/servers/slapd/back-meta/config.c b/servers/slapd/back-meta/config.c index 610f607545..5a3b3d82ce 100644 --- a/servers/slapd/back-meta/config.c +++ b/servers/slapd/back-meta/config.c @@ -1082,7 +1082,9 @@ idassert-authzFrom "dn:" 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;