1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

s3-kerberos: fix some build warnings when building against heimdal.

Guenther
This commit is contained in:
Günther Deschner 2009-11-06 10:25:53 +01:00
parent 35dcc133c9
commit bb75f713d6

View 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;
}