From bb75f713d628073c503b06a3d217195aa95d72b2 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 6 Nov 2009 10:25:53 +0100 Subject: s3-kerberos: fix some build warnings when building against heimdal. Guenther --- source3/libads/kerberos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/libads') diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c index c1e6c4ac38..89357b01fb 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; } -- cgit