Tiny simplification to dom_sid_string_buf
authorVolker Lendecke <vl@samba.org>
Tue, 31 May 2011 20:07:11 +0000 (22:07 +0200)
committerVolker 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

index 2f80a36ae1454a438fb5ef8b9b0c89958a075a82..16b7af92f4a5027497058c1c9de71e1cb327755c 100644 (file)
@@ -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]) +