1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

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
This commit is contained in:
Volker Lendecke
2011-03-03 17:02:40 +01:00
committed by Volker Lendecke
parent 70517477f8
commit 7b139a49dc

View File

@ -34,9 +34,7 @@
char *sid_to_fstring(fstring sidstr_out, const struct dom_sid *sid) char *sid_to_fstring(fstring sidstr_out, const struct dom_sid *sid)
{ {
char *str = sid_string_talloc(talloc_tos(), sid); dom_sid_string_buf(sid, sidstr_out, sizeof(fstring));
fstrcpy(sidstr_out, str);
TALLOC_FREE(str);
return sidstr_out; return sidstr_out;
} }