diff options
author | Volker Lendecke <vl@samba.org> | 2007-12-15 22:00:39 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2007-12-15 22:09:37 +0100 |
commit | 14ef4cdec1ab6be55c97d0f32780cbddbcdde218 (patch) | |
tree | e7cb94297496f758a7935aaec62c7dd772e96f3a /source3/winbindd/winbindd_async.c | |
parent | d899b8c56ad6556baf2d2374704cc8cd1b15d5ad (diff) | |
download | samba-14ef4cdec1ab6be55c97d0f32780cbddbcdde218.tar.gz samba-14ef4cdec1ab6be55c97d0f32780cbddbcdde218.tar.bz2 samba-14ef4cdec1ab6be55c97d0f32780cbddbcdde218.zip |
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.
(This used to be commit c7c885078be8fd3024c186044ac28275d7609679)
Diffstat (limited to 'source3/winbindd/winbindd_async.c')
-rw-r--r-- | source3/winbindd/winbindd_async.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_async.c b/source3/winbindd/winbindd_async.c index 1c30558058..0971476f44 100644 --- a/source3/winbindd/winbindd_async.c +++ b/source3/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)) { |