From: Hallvard Furuseth Date: Mon, 26 Sep 2005 04:39:51 +0000 (+0000) Subject: Fix snprintf() format X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~385 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=05f5c7525b5760030b7070403f6c3702da24295d;p=openldap Fix snprintf() format --- diff --git a/servers/slapd/back-meta/search.c b/servers/slapd/back-meta/search.c index 0847a92638..544bf6e31f 100644 --- a/servers/slapd/back-meta/search.c +++ b/servers/slapd/back-meta/search.c @@ -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 ) {