]> git.sur5r.net Git - openldap/commitdiff
Fix snprintf() format
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 26 Sep 2005 04:39:51 +0000 (04:39 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 26 Sep 2005 04:39:51 +0000 (04:39 +0000)
servers/slapd/back-meta/search.c

index 0847a92638c72fa84c658bb2a77b6fad928851e0..544bf6e31f5f2c0a9ebe69d01b505cebadf15221 100644 (file)
@@ -630,11 +630,11 @@ really_bad:;
                                sres = slap_map_api2result( rs );
 
                                snprintf( buf, sizeof( buf ),
-                                       "%s meta_back_search[%d] "
-                                       "match=\"%s\" err=%d\n",
+                                       "%s meta_back_search[%ld] "
+                                       "match=\"%s\" err=%ld\n",
                                        op->o_log_prefix, i,
                                        candidates[ i ].sr_matched ? candidates[ i ].sr_matched : "",
-                                       candidates[ i ].sr_err );
+                                       (long) candidates[ i ].sr_err );
                                Debug( LDAP_DEBUG_ANY, "%s", buf, 0, 0 );
 
                                switch ( sres ) {