summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-03 17:02:40 +0100
committerVolker Lendecke <vlendec@samba.org>2011-03-03 22:56:56 +0100
commit7b139a49dced08c4500960738bd0c06b5a57000e (patch)
tree8930fc04e071f1d356c6d54767027b49dd7a4fce /source3
parent70517477f8deafc8027388d0597bbd53bd407c58 (diff)
downloadsamba-7b139a49dced08c4500960738bd0c06b5a57000e.tar.gz
samba-7b139a49dced08c4500960738bd0c06b5a57000e.tar.bz2
samba-7b139a49dced08c4500960738bd0c06b5a57000e.zip
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')
-rw-r--r--source3/lib/util_sid.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c
index bb9e2e98f9..0a026a1e05 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;
}