summaryrefslogtreecommitdiffstats
path: root/ldap/include
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2005-03-05 04:29:24 +0000
committerRich Megginson <rmeggins@redhat.com>2005-03-05 04:29:24 +0000
commitb352660e243c7b9b7d050f1c38cff1c9faf278b1 (patch)
treeede08019beb931c3206609ab2377a015d510bdb4 /ldap/include
parentf08951680ddfebc3f3df07e720ad0650fe473c0f (diff)
downloadds-b352660e243c7b9b7d050f1c38cff1c9faf278b1.tar.gz
ds-b352660e243c7b9b7d050f1c38cff1c9faf278b1.tar.xz
ds-b352660e243c7b9b7d050f1c38cff1c9faf278b1.zip
clean up sprintf usage and many other flawfinder issues; clean up compiler warnings on Linux; remove pam_passthru from DS 7.1
Diffstat (limited to 'ldap/include')
-rw-r--r--ldap/include/Makefile3
-rw-r--r--ldap/include/ldaplog.h2
2 files changed, 1 insertions, 4 deletions
diff --git a/ldap/include/Makefile b/ldap/include/Makefile
index d4ab5bf9..c56ed6e3 100644
--- a/ldap/include/Makefile
+++ b/ldap/include/Makefile
@@ -26,9 +26,6 @@ endif
all: FORCE
-$(LDAP_INCLUDEDIR):
- $(MKDIR) $(LDAP_INCLUDEDIR)
-
clientSDK: $(LDAP_INCLUDEDIR) all FORCE
$(INSTALL) $(INSTALLFLAGS) $(PROT) ldap.h $(LDAP_INCLUDEDIR)
$(INSTALL) $(INSTALLFLAGS) $(PROT) lber.h $(LDAP_INCLUDEDIR)
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))