summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-07-31 20:51:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:26 -0500
commitfd8bae8b1660acefd327121ef3d8a356cb0c09fa (patch)
tree86e1799721a31a6ebb667bb3fa01695828083c54 /source3/libads
parent5fbe298b5ad781670715c63e248131498d73e7c6 (diff)
downloadsamba-fd8bae8b1660acefd327121ef3d8a356cb0c09fa.tar.gz
samba-fd8bae8b1660acefd327121ef3d8a356cb0c09fa.tar.bz2
samba-fd8bae8b1660acefd327121ef3d8a356cb0c09fa.zip
r17345: Some C++ warnings
(This used to be commit 21c8fa2fc8bfd35d203b089ff61efc7c292b4dc0)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/kerberos.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c
index af4ba86831..910207968c 100644
--- a/source3/libads/kerberos.c
+++ b/source3/libads/kerberos.c
@@ -45,7 +45,8 @@ 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, data, prompts[0].reply->length-1);
+ strncpy(prompts[0].reply->data, (const char *)data,
+ prompts[0].reply->length-1);
prompts[0].reply->length = strlen(prompts[0].reply->data);
} else {
prompts[0].reply->length = 0;