diff options
Diffstat (limited to 'source/libads/kerberos.c')
-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; } |