s3-kerberos: fix some build warnings when building against heimdal.
authorGünther Deschner <gd@samba.org>
Fri, 6 Nov 2009 09:25:53 +0000 (10:25 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 13 Jan 2010 13:01:00 +0000 (14:01 +0100)
Guenther
(cherry picked from commit 6664d015c986946c509f4f8d3524f84fb2f34ff1)

source/libads/kerberos.c

index 973647e8cc8ef2deaab1762893873eca4fcdf912..1ceed64019ae39f43898c7a554e4a86772b0504f 100644 (file)
@@ -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;
                }