summaryrefslogtreecommitdiff
path: root/source/winbindd/winbindd_async.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2007-12-15 22:00:39 +0100
committerVolker Lendecke <vl@samba.org>2007-12-15 22:09:37 +0100
commitc7c885078be8fd3024c186044ac28275d7609679 (patch)
treeb5274d4b5a841205278703adcb162fd62b15e9a0 /source/winbindd/winbindd_async.c
parentc221c246b10e2dbbd54a9af2dc45de2eae237380 (diff)
downloadsamba-c7c885078be8fd3024c186044ac28275d7609679.tar.gz
Replace sid_string_static with sid_to_string
This adds 28 fstrings on the stack, but I think an fstring on the stack is still far better than a static one.
Diffstat (limited to 'source/winbindd/winbindd_async.c')
-rw-r--r--source/winbindd/winbindd_async.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/winbindd/winbindd_async.c b/source/winbindd/winbindd_async.c
index 1c30558058f..0971476f440 100644
--- a/source/winbindd/winbindd_async.c
+++ b/source/winbindd/winbindd_async.c
@@ -458,8 +458,9 @@ bool print_sidlist(TALLOC_CTX *mem_ctx, const DOM_SID *sids,
*len = 0;
*result = NULL;
for (i=0; i<num_sids; i++) {
+ fstring tmp;
sprintf_append(mem_ctx, result, len, &buflen,
- "%s\n", sid_string_static(&sids[i]));
+ "%s\n", sid_to_string(tmp, &sids[i]));
}
if ((num_sids != 0) && (*result == NULL)) {