summaryrefslogtreecommitdiff
path: root/source4/libcli/security
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-12-19 15:23:58 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-12-20 14:44:39 +1100
commitdd5a4681e8bc009e16d3586471630933710dd190 (patch)
treecf871bf1b7b4e28ccb463afda1fb2f0e52473158 /source4/libcli/security
parentfcadf47a156a9a9a9d43503c905e960f51f020eb (diff)
downloadsamba-dd5a4681e8bc009e16d3586471630933710dd190.tar.gz
samba-dd5a4681e8bc009e16d3586471630933710dd190.tar.bz2
samba-dd5a4681e8bc009e16d3586471630933710dd190.zip
Fix compiler warning when parsing a SID in a data blob
Diffstat (limited to 'source4/libcli/security')
-rw-r--r--source4/libcli/security/dom_sid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/security/dom_sid.c b/source4/libcli/security/dom_sid.c
index d8a83f2abb..36e3967910 100644
--- a/source4/libcli/security/dom_sid.c
+++ b/source4/libcli/security/dom_sid.c
@@ -152,7 +152,7 @@ struct dom_sid *dom_sid_parse_talloc(TALLOC_CTX *mem_ctx, const char *sidstr)
struct dom_sid *dom_sid_parse_length(TALLOC_CTX *mem_ctx, const DATA_BLOB *sid)
{
struct dom_sid *ret;
- char *p = talloc_strndup(mem_ctx, sid->data, sid->length);
+ char *p = talloc_strndup(mem_ctx, (char *)sid->data, sid->length);
if (!p) {
return NULL;
}