summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-09-14 17:42:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:47 -0500
commitab9d7bf4f950a78d9ca7973294d133290c99096c (patch)
tree0137d6eb9490415502d9b9a232033efb51b7b48b /source3/libads
parent47107b2cdea7c58c337639f6d1aaab94390bf0f6 (diff)
downloadsamba-ab9d7bf4f950a78d9ca7973294d133290c99096c.tar.gz
samba-ab9d7bf4f950a78d9ca7973294d133290c99096c.tar.bz2
samba-ab9d7bf4f950a78d9ca7973294d133290c99096c.zip
r25165: Use talloc_asprintf_append_buffer with an unmodified
string. Jeremy. (This used to be commit fe30a523dfc77cc373145624246fd3ad5c62b9ac)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap_schema.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libads/ldap_schema.c b/source3/libads/ldap_schema.c
index 170ee65df7..ff41ccc861 100644
--- a/source3/libads/ldap_schema.c
+++ b/source3/libads/ldap_schema.c
@@ -48,13 +48,13 @@ ADS_STATUS ads_get_attrnames_by_oids(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx,
for (i=0; i<num_OIDs; i++) {
- if ((expr = talloc_asprintf_append(expr, "(attributeId=%s)",
+ if ((expr = talloc_asprintf_append_buffer(expr, "(attributeId=%s)",
OIDs[i])) == NULL) {
return ADS_ERROR(LDAP_NO_MEMORY);
}
}
- if ((expr = talloc_asprintf_append(expr, ")")) == NULL) {
+ if ((expr = talloc_asprintf_append_buffer(expr, ")")) == NULL) {
return ADS_ERROR(LDAP_NO_MEMORY);
}