summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/attr.c
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/servers/slapd/attr.c
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/servers/slapd/attr.c')
-rw-r--r--ldap/servers/slapd/attr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ldap/servers/slapd/attr.c b/ldap/servers/slapd/attr.c
index 0e07fa1d..112d5caf 100644
--- a/ldap/servers/slapd/attr.c
+++ b/ldap/servers/slapd/attr.c
@@ -245,9 +245,7 @@ slapi_attr_init_locking_optional(Slapi_Attr *a, const char *type, PRBool use_loc
char *normalized_options;
normalized_options = attr_syntax_normalize_no_lookup( attroptions );
- a->a_type = slapi_ch_malloc( strlen(asi->asi_name)
- + strlen(normalized_options) +1 );
- sprintf( a->a_type, "%s%s", asi->asi_name, normalized_options );
+ a->a_type = slapi_ch_smprintf("%s%s", asi->asi_name, normalized_options );
slapi_ch_free_string( &normalized_options );
}
}