diff options
author | Volker Lendecke <vl@samba.org> | 2011-03-03 17:02:40 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-03-03 22:56:56 +0100 |
commit | 7b139a49dced08c4500960738bd0c06b5a57000e (patch) | |
tree | 8930fc04e071f1d356c6d54767027b49dd7a4fce /source3/lib/util_sid.c | |
parent | 70517477f8deafc8027388d0597bbd53bd407c58 (diff) | |
download | samba-7b139a49dced08c4500960738bd0c06b5a57000e.tar.gz |
s3: Use dom_sid_string_buf in sid_to_fstring
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Mar 3 22:56:57 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/lib/util_sid.c')
-rw-r--r-- | source3/lib/util_sid.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c index bb9e2e98f97..0a026a1e052 100644 --- a/source3/lib/util_sid.c +++ b/source3/lib/util_sid.c @@ -34,9 +34,7 @@ char *sid_to_fstring(fstring sidstr_out, const struct dom_sid *sid) { - char *str = sid_string_talloc(talloc_tos(), sid); - fstrcpy(sidstr_out, str); - TALLOC_FREE(str); + dom_sid_string_buf(sid, sidstr_out, sizeof(fstring)); return sidstr_out; } |