r8095: Fix compiler warning.
authorRafal Szczesniak <mimir@samba.org>
Sun, 3 Jul 2005 14:03:41 +0000 (14:03 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:19:07 +0000 (13:19 -0500)
rafal
(This used to be commit 6736ab102f60f8e14d10f430f3e5a0eef478bc81)

source4/libnet/libnet_rpc.c

index 92f4df5844adf0257a4ec1c91e5c5fc4b0173d15..33d32c25dda485ee7cd37970d9b0017f368c517c 100644 (file)
@@ -126,7 +126,7 @@ static NTSTATUS libnet_RpcConnectPdc(struct libnet_context *ctx, TALLOC_CTX *mem
        NTSTATUS status;
        struct libnet_RpcConnect r2;
        struct libnet_Lookup f;
-       char address[16];
+       const char *address = talloc_array(ctx, const char, 16);
 
        f.in.hostname  = r->in.domain_name;
        f.in.methods   = NULL;