git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7051747
)
s3: Use dom_sid_string_buf in sid_to_fstring
author
Volker Lendecke
<vl@samba.org>
Thu, 3 Mar 2011 16:02:40 +0000
(17:02 +0100)
committer
Volker Lendecke
<vlendec@samba.org>
Thu, 3 Mar 2011 21:56:56 +0000
(22:56 +0100)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Mar 3 22:56:57 CET 2011 on sn-devel-104
source3/lib/util_sid.c
patch
|
blob
|
history
diff --git
a/source3/lib/util_sid.c
b/source3/lib/util_sid.c
index bb9e2e98f97058d3fa3bb29cb0ff49d0340982ca..0a026a1e052a4f1b3752d57eaa8321b017bbf5f1 100644
(file)
--- 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;
}