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:
parent
35dcc133c9
commit
bb75f713d6
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user