From 05f5c7525b5760030b7070403f6c3702da24295d Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 26 Sep 2005 04:39:51 +0000 Subject: [PATCH] Fix snprintf() format --- servers/slapd/back-meta/search.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ) { -- 2.39.5