git.samba.org
/
ddiss
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d77854f
)
Tiny simplification to dom_sid_string_buf
author
Volker Lendecke
<vl@samba.org>
Tue, 31 May 2011 20:07:11 +0000
(22:07 +0200)
committer
Volker Lendecke
<vlendec@samba.org>
Tue, 31 May 2011 21:16:31 +0000
(23:16 +0200)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue May 31 23:16:31 CEST 2011 on sn-devel-104
libcli/security/dom_sid.c
patch
|
blob
|
history
diff --git
a/libcli/security/dom_sid.c
b/libcli/security/dom_sid.c
index 2f80a36ae1454a438fb5ef8b9b0c89958a075a82..16b7af92f4a5027497058c1c9de71e1cb327755c 100644
(file)
--- a/
libcli/security/dom_sid.c
+++ b/
libcli/security/dom_sid.c
@@
-367,8
+367,7
@@
int dom_sid_string_buf(const struct dom_sid *sid, char *buf, int buflen)
uint32_t ia;
if (!sid) {
- strlcpy(buf, "(NULL SID)", buflen);
- return 10; /* strlen("(NULL SID)") */
+ return strlcpy(buf, "(NULL SID)", buflen);
}
ia = (sid->id_auth[5]) +