summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-05-31 22:07:11 +0200
committerVolker Lendecke <vlendec@samba.org>2011-05-31 23:16:31 +0200
commitb9a727c5f17c96138698a06e8c894387531e82b2 (patch)
treedc755628bb8b5b23901dc0affb75ec4b75944158
parentd77854fbb22bc9237cea14aae1179bbfe3bd0998 (diff)
downloadsamba-b9a727c5f17c96138698a06e8c894387531e82b2.tar.gz
samba-b9a727c5f17c96138698a06e8c894387531e82b2.tar.bz2
samba-b9a727c5f17c96138698a06e8c894387531e82b2.zip
Tiny simplification to dom_sid_string_buf
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue May 31 23:16:31 CEST 2011 on sn-devel-104
-rw-r--r--libcli/security/dom_sid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libcli/security/dom_sid.c b/libcli/security/dom_sid.c
index 2f80a36ae1..16b7af92f4 100644
--- 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]) +