From b9a727c5f17c96138698a06e8c894387531e82b2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 31 May 2011 22:07:11 +0200 Subject: Tiny simplification to dom_sid_string_buf Autobuild-User: Volker Lendecke Autobuild-Date: Tue May 31 23:16:31 CEST 2011 on sn-devel-104 --- libcli/security/dom_sid.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libcli') 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]) + -- cgit