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:
7154953
)
net: Use dom_sid_str_buf
author
Volker Lendecke
<vl@samba.org>
Thu, 18 Oct 2018 04:18:22 +0000
(06:18 +0200)
committer
Jeremy Allison
<jra@samba.org>
Fri, 2 Nov 2018 20:21:15 +0000
(21:21 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/utils/net_cache.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_cache.c
b/source3/utils/net_cache.c
index 2d6989918f5ae4b4f17448ab22610c85c59a990e..4416630b87186232167eaaf90c98e6ecd821f174 100644
(file)
--- a/
source3/utils/net_cache.c
+++ b/
source3/utils/net_cache.c
@@
-463,9
+463,10
@@
static int net_cache_samlogon_show(struct net_context *c,
}
for (i = 0; i < num_user_sids; i++) {
- char buf[DOM_SID_STR_BUFLEN];
- dom_sid_string_buf(&user_sids[i], buf, sizeof(buf));
- d_printf("SID %2" PRIu32 ": %s\n", i, buf);
+ struct dom_sid_buf buf;
+ d_printf("SID %2" PRIu32 ": %s\n",
+ i,
+ dom_sid_str_buf(&user_sids[i], &buf));
}
TALLOC_FREE(user_sids);