summaryrefslogtreecommitdiffstats
path: root/ldap/include/ldaplog.h
diff options
context:
space:
mode:
Diffstat (limited to 'ldap/include/ldaplog.h')
-rw-r--r--ldap/include/ldaplog.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/include/ldaplog.h b/ldap/include/ldaplog.h
index d2744987..4390276e 100644
--- a/ldap/include/ldaplog.h
+++ b/ldap/include/ldaplog.h
@@ -70,7 +70,7 @@ extern "C" {
# define LDAPDebug( level, fmt, arg1, arg2, arg3 ) \
if ( slapd_ldap_debug & level ) { \
char msg[256]; \
- sprintf( msg, fmt, arg1, arg2, arg3 ); \
+ PR_snprintf( msg, sizeof(msg), fmt, arg1, arg2, arg3 ); \
ber_err_print( msg ); \
}
# define LDAPDebugLevelIsSet( level ) (0 != (slapd_ldap_debug & level))