]> git.sur5r.net Git - openldap/commitdiff
Warning cleanup: signed meets unsigned.
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 13 Oct 2008 08:29:21 +0000 (08:29 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 13 Oct 2008 08:29:21 +0000 (08:29 +0000)
servers/slapd/back-meta/config.c

index 610f607545a6c7a6c2d3288a4fc3ac9ee6f45a1e..5a3b3d82ce3c7d0179cfe3e43ecb758aa06bfc0b 100644 (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;