From 2a5e9efc76fbc9e608273007d5447de49b8aec7e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 3 Mar 2011 17:02:40 +0100 Subject: [PATCH] s3: Use dom_sid_string_buf in sid_to_fstring Autobuild-User: Volker Lendecke Autobuild-Date: Thu Mar 3 22:56:57 CET 2011 on sn-devel-104 --- source3/lib/util_sid.c | 4 +--- 1 file changed, 1 insertion(+), 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; } -- 2.11.4.GIT