diff options
author | Günther Deschner <gd@samba.org> | 2009-11-06 10:25:53 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2010-01-13 14:01:00 +0100 |
commit | ff544dc50d132eebb5e7e7d58285a7bd297decae (patch) | |
tree | 5fe7d710e903c1d6172da07d2f773913e9850c3d | |
parent | 749762a7f809cac50c01a922b58289dee6a7279e (diff) | |
download | samba-ff544dc50d132eebb5e7e7d58285a7bd297decae.tar.gz |
s3-kerberos: fix some build warnings when building against heimdal.
Guenther
(cherry picked from commit 6664d015c986946c509f4f8d3524f84fb2f34ff1)
-rw-r--r-- | source/libads/kerberos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/libads/kerberos.c b/source/libads/kerberos.c index 973647e8cc8..1ceed64019a 100644 --- a/source/libads/kerberos.c +++ b/source/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; } |