This is the one place where we have to do another strpcy. Many of the
sid_to_fstring calls should be replacable by dom_sid_str_buf, so this
will get less.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
char *sid_to_fstring(fstring sidstr_out, const struct dom_sid *sid)
{
- dom_sid_string_buf(sid, sidstr_out, sizeof(fstring));
+ struct dom_sid_buf buf;
+ fstrcpy(sidstr_out, dom_sid_str_buf(sid, &buf));
return sidstr_out;
}