git.samba.org
/
jra
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcadf47
)
Fix compiler warning when parsing a SID in a data blob
author
Andrew Bartlett
<abartlet@samba.org>
Fri, 19 Dec 2008 04:23:58 +0000
(15:23 +1100)
committer
Andrew Bartlett
<abartlet@samba.org>
Sat, 20 Dec 2008 03:44:39 +0000
(14:44 +1100)
source4/libcli/security/dom_sid.c
patch
|
blob
|
history
diff --git
a/source4/libcli/security/dom_sid.c
b/source4/libcli/security/dom_sid.c
index d8a83f2abbce97e5f67b85c8523b6c88225a3c8f..36e39679104909eaa87d8ba9f383299c386c6363 100644
(file)
--- 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;
}