summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-11-06 10:25:53 +0100
committerKarolin Seeger <kseeger@samba.org>2009-11-26 11:40:17 +0100
commit6603017570875d79f2fd89bbec3745c6379deab6 (patch)
tree8eb9185bb23296cfe8d6f8242411f6b892ca252d
parent8e0dd860b493c13fc3bde86371bd4f718f061344 (diff)
downloadsamba-6603017570875d79f2fd89bbec3745c6379deab6.tar.gz
samba-6603017570875d79f2fd89bbec3745c6379deab6.tar.xz
samba-6603017570875d79f2fd89bbec3745c6379deab6.zip
s3-kerberos: fix some build warnings when building against heimdal.
Guenther (cherry picked from commit bb75f713d628073c503b06a3d217195aa95d72b2) (cherry picked from commit 99639fab2ae3da2edc4f51e8c6e8f3314bf4f31f)
-rw-r--r--source3/libads/kerberos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c
index c1e6c4ac38f..89357b01fbd 100644
--- 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;
}