git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35dcc13
)
s3-kerberos: fix some build warnings when building against heimdal.
author
Günther Deschner
<gd@samba.org>
Fri, 6 Nov 2009 09:25:53 +0000
(10:25 +0100)
committer
Günther Deschner
<gd@samba.org>
Fri, 6 Nov 2009 11:43:33 +0000
(12:43 +0100)
Guenther
source3/libads/kerberos.c
patch
|
blob
|
history
diff --git
a/source3/libads/kerberos.c
b/source3/libads/kerberos.c
index c1e6c4ac38f6736c97f5222b71fadafaa9df9195..89357b01fbd801f47bda155fc0db5f01d98caa04 100644
(file)
--- a/
source3/libads/kerberos.c
+++ b/
source3/libads/kerberos.c
@@
-46,9
+46,9
@@
kerb_prompter(krb5_context ctx, void *data,
memset(prompts[0].reply->data, '\0', prompts[0].reply->length);
if (prompts[0].reply->length > 0) {
if (data) {
- strncpy(prompts[0].reply->data, (const char *)data,
+ strncpy(
(char *)
prompts[0].reply->data, (const char *)data,
prompts[0].reply->length-1);
- prompts[0].reply->length = strlen(prompts[0].reply->data);
+ prompts[0].reply->length = strlen(
(const char *)
prompts[0].reply->data);
} else {
prompts[0].reply->length = 0;
}